{"id":13557321,"url":"https://github.com/gazpachoking/minesweeper","last_synced_at":"2025-04-14T12:03:25.885Z","repository":{"id":39097341,"uuid":"135752639","full_name":"gazpachoking/minesweeper","owner":"gazpachoking","description":"Because I was bored.","archived":false,"fork":false,"pushed_at":"2025-04-14T02:41:52.000Z","size":355,"stargazers_count":19,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T12:03:20.428Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://minesweeper.gazpachoking.net","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gazpachoking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null},"funding":{"github":"gazpachoking","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2018-06-01T18:48:21.000Z","updated_at":"2025-04-14T02:41:55.000Z","dependencies_parsed_at":"2024-01-07T21:02:27.256Z","dependency_job_id":"646cb82c-714a-4754-8bc4-c7dfd26fcc79","html_url":"https://github.com/gazpachoking/minesweeper","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/gazpachoking%2Fminesweeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gazpachoking%2Fminesweeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gazpachoking%2Fminesweeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gazpachoking%2Fminesweeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gazpachoking","download_url":"https://codeload.github.com/gazpachoking/minesweeper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877987,"owners_count":21176243,"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-08-01T12:04:16.709Z","updated_at":"2025-04-14T12:03:25.866Z","avatar_url":"https://github.com/gazpachoking.png","language":"Python","funding_links":["https://github.com/sponsors/gazpachoking"],"categories":["Python","others","\u003ca name=\"games\"\u003e\u003c/a\u003eGames"],"sub_categories":[],"readme":"Minesweeper\n===========\n\nMinesweeper. No losing from guessing. Two interfaces.\n\nThe web interface is available (for now) at http://minesweeper.gazpachoking.net\n\n\n![minesweeper](https://gazpachoking.github.io/minesweeper/minesweeper.emoji.png)\n![web](https://gazpachoking.github.io/minesweeper/minesweeper.web.png)\n\nFeatures\n--------\n\n- Two interfaces\n  - Play by yourself from the terminal. (boring)\n  - Play on the web, with ~~griefing~~ coop!\n- Cross platform\n- Kaboom mode:\n  - Cruel but fair, where guessing is punished, \n  but when only guesses are left you are guaranteed not to be wrong.\n  - Based on the blog post [here](https://pwmarcz.pl/blog/kaboom/).\n- Keyboard or mouse (or hybrid) control\n- Standard and Knight's move modes\n- Double-width characters (if your terminal supports it)\n- QoL features:\n  - Highlight adjacent tiles\n  - Clear all adjacent\n  - Mark all adjacent\n  - Shows spaces that were provably empty after a loss (marked with yellow)\n\nRunning\n-------\n\nCLI\n===\nCheck out the code. Run `uv run minesweeper`.\n\nWeb\n===\nCheck out the code. Run `docker compose up` to start the server. Connect to `http://localhost:8080`\n\nControls\n--------\n\n- **N** New game\n- **Q** Quit\n- **Right-click/M** Mark mine/mark all adjacent\n- **Click/Space** Reveal tile\n- **Double-click/Space** Reveal all adjacent (except marked mines)\n\nLegend\n------\n\n- ░ Unrevealed tile\n- **\\#** Marked as mine\n- **1-8** Number of adjacent mines\n- **\\*** Unmarked mine (after game end)\n- **X** Incorrect mark (after game end) \n\nCLI\n---\n\n- **--size X Y** Specify field size\n- **--mines N** Specify number (or fraction of board) of mines\n- **--niceness cruel|normal|fair|nice**\n  - **nice** Any click that could result in an empty tile is an empty tile.\n  - **fair** If guessing is the only move available, you will not guess wrong.\n  - **normal** Traditional minesweeper.\n  - **cruel** Any click that could result in a mine is a mine. (Except when guessing is the only move available.)\n- **--style single|double** double mode uses full width unicode characters to\n  double the cell size. Use single if this causes problems with your terminal. \n\n  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgazpachoking%2Fminesweeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgazpachoking%2Fminesweeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgazpachoking%2Fminesweeper/lists"}