{"id":20409705,"url":"https://github.com/sleekpanther/mastermind-game","last_synced_at":"2026-07-19T00:32:10.915Z","repository":{"id":115108611,"uuid":"118777592","full_name":"SleekPanther/mastermind-game","owner":"SleekPanther","description":"Command line implementation of the board game Mastermind for a Software Engineering class","archived":false,"fork":false,"pushed_at":"2018-02-13T23:15:28.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-19T20:40:27.506Z","etag":null,"topics":["knuth","knuth-algorithm","mastermind","mastermind-board-game","mastermind-game","noah","noah-patullo","noahpatullo","pattullo","pattulo","patullo","patulo","software-engineering"],"latest_commit_sha":null,"homepage":"","language":"Java","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/SleekPanther.png","metadata":{"files":{"readme":"README.md","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":"2018-01-24T14:40:07.000Z","updated_at":"2018-02-13T23:13:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d63d9e9-6abb-44c8-9f8a-5eafd8177d7b","html_url":"https://github.com/SleekPanther/mastermind-game","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SleekPanther/mastermind-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleekPanther%2Fmastermind-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleekPanther%2Fmastermind-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleekPanther%2Fmastermind-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleekPanther%2Fmastermind-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SleekPanther","download_url":"https://codeload.github.com/SleekPanther/mastermind-game/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleekPanther%2Fmastermind-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35636543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-18T02:00:07.223Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["knuth","knuth-algorithm","mastermind","mastermind-board-game","mastermind-game","noah","noah-patullo","noahpatullo","pattullo","pattulo","patullo","patulo","software-engineering"],"created_at":"2024-11-15T05:43:01.487Z","updated_at":"2026-07-19T00:32:10.877Z","avatar_url":"https://github.com/SleekPanther.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mastermind\nCommand line implementation of the board game Mastermind for a Software Engineering class\n\n## Algorithm\nAn adaptation of the [Knuth Algorithm](https://en.wikipedia.org/wiki/Mastermind_(board_game)#Algorithms)\n\n1. The computer generates all possible 4-character code of unique colors\n2. Picks a random code from these possibilities \u0026 calls an evaluation function feedback\n3. It then loops over all remaining possibilities, calls the evaluation function \u0026 compares the new feedback to the feedback from the 1st guess eliminating all possibilities that give different feedback. (e.g. if the evaluation function returns \"2 correct color \u0026 location\" and \"1 correct color, incorrect location\" it removes all codes that don't give the feedback 2 \u0026 1).\n4. Go back to step 2, pick another code from remaining possibilities \u0026 evaluate all other possibilities eliminating the ones that score the same. This continues until it's the correct code or the game runs out of guesses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleekpanther%2Fmastermind-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsleekpanther%2Fmastermind-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleekpanther%2Fmastermind-game/lists"}