{"id":19945555,"url":"https://github.com/odilson-dev/mastermind","last_synced_at":"2026-06-10T11:31:10.196Z","repository":{"id":196237708,"uuid":"694406010","full_name":"odilson-dev/mastermind","owner":"odilson-dev","description":"Mastermind is a command line game where you have 12 turns to guess the secret code, starting with you guessing the computer’s random code.","archived":false,"fork":false,"pushed_at":"2023-12-11T20:56:49.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T10:50:57.690Z","etag":null,"topics":["game","mastermind","ruby","theodinproject"],"latest_commit_sha":null,"homepage":"https://replit.com/@odilsonjs/Project-Mastermind?v=1","language":"Ruby","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/odilson-dev.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}},"created_at":"2023-09-21T00:07:22.000Z","updated_at":"2023-12-11T20:57:32.000Z","dependencies_parsed_at":"2024-01-03T20:41:36.241Z","dependency_job_id":null,"html_url":"https://github.com/odilson-dev/mastermind","commit_stats":null,"previous_names":["odilsonjs/mastermind","odilsoncode/mastermind","odilson-dev/mastermind"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/odilson-dev/mastermind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odilson-dev%2Fmastermind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odilson-dev%2Fmastermind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odilson-dev%2Fmastermind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odilson-dev%2Fmastermind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odilson-dev","download_url":"https://codeload.github.com/odilson-dev/mastermind/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odilson-dev%2Fmastermind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34151271,"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-06-10T02:00:07.152Z","response_time":89,"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":["game","mastermind","ruby","theodinproject"],"created_at":"2024-11-13T00:25:58.971Z","updated_at":"2026-06-10T11:31:10.178Z","avatar_url":"https://github.com/odilson-dev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mastermind\nMastermind is a command line game where you have 12 turns to guess the secret code, starting with you guessing the computer’s random code.\n\nIt is a classic code-breaking board game for two players, one who creates a secret code and the other who attempts to guess the code. Here's how to play Mastermind:\n\nObjective:\n\nThe code-creator creates a secret code consisting of a sequence of colored pegs (usually 4 to 6 pegs) from a set of available colors.\nThe code-breaker's objective is to guess the secret code within a certain number of attempts.\n\nSetup:\n\nDecide who will be the code-creator and who will be the code-breaker.\nChoose the number of pegs in the code (usually 4) and the set of available colors. Commonly, there are 6 different colors to choose from.\n\nGameplay:\n\nThe code-creator selects a secret code without revealing it to the code-breaker.\nThe code-breaker makes an initial guess by arranging colored pegs in a specific order on a board.\nThe code-creator provides feedback after each guess by using two types of markers:\nBlack pegs: These are placed to indicate that a peg is the correct color and in the correct position.\nWhite pegs: These are placed to indicate that a peg is the correct color but in the wrong position.\nNo pegs: If none are given, it means there are no correct colors in the guess.\nThe code-breaker continues to make guesses, taking into account the feedback received, until they either guess the correct code or reach a predetermined limit of attempts.\n\nWinning:\n\nThe code-breaker wins if they guess the secret code within the specified number of attempts.\nThe code-creator wins if the code-breaker exhausts all attempts without correctly guessing the code.\nExample:\nLet's say there are 4 pegs and 6 colors (represented by numbers 1 to 6).\n\nSecret Code: 2 4 1 6\nCode-Breaker's Guess: 3 1 5 6\nFeedback: Black White NoPeg NoPeg\n\"Black\" means one peg (color 1) is correct and in the correct position.\n\"White\" means one peg (color 6) is correct but in the wrong position.\n\"NoPeg\" indicates that the other two colors are not in the secret code.\nThe code-breaker continues making guesses and adjusting based on feedback until they either guess the secret code or run out of attempts.\n\nMastermind is a game of logic, deduction, and strategy, and it can be a fun and challenging activity for players of all ages.\n\n# Link Course\nhttps://www.theodinproject.com/lessons/ruby-mastermind\n\n# GitHub repo link\nhttps://github.com/odilsonjs/Mastermind\n\n# Replit link\nhttps://replit.com/@odilsonjs/Project-Mastermind?v=1","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodilson-dev%2Fmastermind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodilson-dev%2Fmastermind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodilson-dev%2Fmastermind/lists"}