{"id":20828803,"url":"https://github.com/perty/master-mind","last_synced_at":"2026-04-24T00:31:52.756Z","repository":{"id":137744272,"uuid":"553606615","full_name":"perty/master-mind","owner":"perty","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-02T16:29:00.000Z","size":583,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T18:40:11.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/perty.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":"2022-10-18T13:28:25.000Z","updated_at":"2024-10-02T16:28:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"e01e0cd7-4702-49d1-98b1-47c5450d9c56","html_url":"https://github.com/perty/master-mind","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perty%2Fmaster-mind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perty%2Fmaster-mind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perty%2Fmaster-mind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perty%2Fmaster-mind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perty","download_url":"https://codeload.github.com/perty/master-mind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243179814,"owners_count":20249179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-17T23:18:28.904Z","updated_at":"2026-04-24T00:31:47.736Z","avatar_url":"https://github.com/perty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Master Mind\n\n\u003ca href=\"screenshot.jpg\"\u003e\n\u003c!--suppress CheckImageSize --\u003e\n\u003cimg src=\"screenshot.jpg\" width=100px alt=\"Screenshot of the game\" /\u003e\n\u003c/a\u003e\n\nThe game of Master Mind, a coding exercise.\n\n## Game rules\n\nA two player game. One selects four pegs, each in one of six colors. The opponent is to guess which they are.\n\nA guess is marked with black and white hints. A black hint means that a guess is right color and place, while\na white hint is for correct color but wrong place.\n\nGiven the information from the hints, the opponent can make another guess and eventually do a completely correct \nguess or run out of possible guesses, 10. In the latter case, the opponent has lost.\n\nA nostalgic look at the game in [Wired magazine](https://www.wired.com/2012/06/late-tothe-game-mastermind/).\n\n## Prerequisite\n\nThe following you should have with you from earlier:\n- Running an Elm program with elm-watch.\n- Elm: Random is a side effect.\n- Unit tests in Elm.\n- Understanding the Elm architecture.\n- Handling user input in Elm.\n- Introduction to HTML.\n- Introduction to CSS.\n- How to publish web pages on GitHub.\n\n## Coding exercise\n\nThe coding exercise has two version, where the first is the easier. There is a design for the user interface created by someone you never met. Use it for inspiration.\n\nThere are unit tests which are being skipped. Make them all pass instead by implementing the logic.\n\nPublish the end result in your portfolio on GitHub.\n\n### Version 1\n\nIn this version, the application sets up the combination and the user try guess it. So the program's job is to randomly pick 4 colors, same or different, and then give the user hints for their guessing.\n\n### Version 2\n\nThe second version has the computer doing the guessing. It can cheat of course, but that would be wrong.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperty%2Fmaster-mind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperty%2Fmaster-mind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperty%2Fmaster-mind/lists"}