{"id":22726195,"url":"https://github.com/maskedsyntax/minesweeper","last_synced_at":"2026-05-18T04:03:44.326Z","repository":{"id":193907175,"uuid":"362467727","full_name":"MaskedSyntax/Minesweeper","owner":"MaskedSyntax","description":"Terminal based Minesweeper game in C++","archived":false,"fork":false,"pushed_at":"2025-01-24T23:09:23.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T01:33:07.182Z","etag":null,"topics":["cpp","game","minesweeper","recursion-problem","terminal"],"latest_commit_sha":null,"homepage":"","language":"C++","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/MaskedSyntax.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":"2021-04-28T12:57:12.000Z","updated_at":"2025-01-24T23:09:27.000Z","dependencies_parsed_at":"2025-01-25T00:19:05.086Z","dependency_job_id":"2378a52f-2617-4598-8110-90154a6c3afd","html_url":"https://github.com/MaskedSyntax/Minesweeper","commit_stats":null,"previous_names":["aftaab25/minesweeper","maskedsyntax/minesweeper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaskedSyntax%2FMinesweeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaskedSyntax%2FMinesweeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaskedSyntax%2FMinesweeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaskedSyntax%2FMinesweeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaskedSyntax","download_url":"https://codeload.github.com/MaskedSyntax/Minesweeper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246258862,"owners_count":20748573,"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":["cpp","game","minesweeper","recursion-problem","terminal"],"created_at":"2024-12-10T16:16:04.906Z","updated_at":"2026-05-18T04:03:44.313Z","avatar_url":"https://github.com/MaskedSyntax.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minesweeper\n\nA modern C++ implementation of the classic Minesweeper game. Test your logic by navigating a hidden minefield using a command-line interface with color support and robust gameplay mechanics.\n\n## Features\n- **Difficulty Levels:**\n  - Beginner: 9x9 grid with 10 mines.\n  - Intermediate: 16x16 grid with 40 mines.\n  - Advanced: 24x24 grid with 99 mines.\n\n- **Gameplay Mechanics:**\n  - **First Move Safety:** Your first move is guaranteed to be safe; mines are placed after your first reveal.\n  - **Flagging System:** Mark suspected mines to keep track of the board.\n  - **Recursive Reveal:** Clearing an empty cell automatically reveals all adjacent safe cells.\n  - **Visual Feedback:** ANSI colors highlight different numbers and mine locations for better readability.\n  - **Play Again Loop:** Start a new game immediately after finishing a session.\n\n## How to Play\n1. **Compile the Game:**\n   Use a C++11 compatible compiler:\n   ```bash\n   g++ -std=c++11 main.cpp -o minesweeper\n   ```\n2. **Select Difficulty:** Choose between Beginner (0), Intermediate (1), or Advanced (2).\n3. **Enter Commands:**\n   - To reveal a cell: `r row column` (e.g., `r 3 4`)\n   - To flag/unflag a cell: `f row column` (e.g., `f 3 4`)\n4. **Win or Lose:** Successfully reveal all safe cells to win, or hit a mine to lose.\n\nChallenge yourself to navigate the minefield and win the game!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaskedsyntax%2Fminesweeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaskedsyntax%2Fminesweeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaskedsyntax%2Fminesweeper/lists"}