{"id":22545209,"url":"https://github.com/pdevine/mastermind","last_synced_at":"2026-02-03T19:32:57.236Z","repository":{"id":66783520,"uuid":"1627929","full_name":"pdevine/mastermind","owner":"pdevine","description":"Mastermind Game","archived":false,"fork":false,"pushed_at":"2021-06-26T18:05:02.000Z","size":122,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-28T01:41:58.966Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pdevine.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-04-17T22:00:21.000Z","updated_at":"2021-06-26T18:05:05.000Z","dependencies_parsed_at":"2023-04-06T18:14:20.953Z","dependency_job_id":null,"html_url":"https://github.com/pdevine/mastermind","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pdevine/mastermind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevine%2Fmastermind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevine%2Fmastermind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevine%2Fmastermind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevine%2Fmastermind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdevine","download_url":"https://codeload.github.com/pdevine/mastermind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevine%2Fmastermind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29054728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T14:09:11.389Z","updated_at":"2026-02-03T19:32:57.229Z","avatar_url":"https://github.com/pdevine.png","language":"ActionScript","readme":"MasterMind\n----------\n\nCode by Patrick Devine (pdevine@sonic.net)\n\nThis is a version of the game \"Mastermind\" game which I often use as an\ninterview question at work.  I chose to use seven colours and four peg holes\ninstead of the usually six/four or eight/five.  There's no real reason for\nchoosing that combination other than I just went with colours which matched\nROYGBIV.  If I'm ever inclined I guess I could go and make that dynamic.\n\nThere is an \"AI\" class which uses brute force to try and break the code\n(which as of this writing is still not hooked up yet).  It works by creating\nthe entire problem set and then whittling down the choices with the scoring\nfunction.  It chooses a guess at random from its list of guesses and then\ncalls the scoring function for each remaining guess in its list.  If the\nresultant score is the same, it keeps that guess, otherwise it discards it.\nDoing this it can actually reduce the possible choices fairly quickly,\nand on average can guess the code in about five tries or so.\n\nIf you'd like to use the code somewhere, for whatever reason, please feel\nfree but make sure you include my name as the original copyright holder.\nAlso, a quick note to me would also be appreciated.\n\nYou can play the game without getting the Adobe Flash SDK at:\n\nhttp://pdevine.users.sonic.net/MasterMind.swf\n\nComments and feedback are always welcome:  pdevine@sonic.net\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdevine%2Fmastermind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdevine%2Fmastermind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdevine%2Fmastermind/lists"}