{"id":17102600,"url":"https://github.com/igor47/sweeper","last_synced_at":"2025-03-23T19:23:22.804Z","repository":{"id":145755586,"uuid":"326334766","full_name":"igor47/sweeper","owner":"igor47","description":"ncurses minesweer using python3 + curtsies","archived":false,"fork":false,"pushed_at":"2022-03-24T17:51:33.000Z","size":44,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T18:54:28.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/igor47.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":"2021-01-03T05:27:44.000Z","updated_at":"2024-11-06T23:11:12.000Z","dependencies_parsed_at":"2023-07-27T11:00:28.167Z","dependency_job_id":null,"html_url":"https://github.com/igor47/sweeper","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/igor47%2Fsweeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igor47%2Fsweeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igor47%2Fsweeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igor47%2Fsweeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igor47","download_url":"https://codeload.github.com/igor47/sweeper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245155104,"owners_count":20569658,"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-10-14T15:29:29.836Z","updated_at":"2025-03-23T19:23:22.743Z","avatar_url":"https://github.com/igor47.png","language":"Python","funding_links":[],"categories":["Table of Contents","\u003ca name=\"games\"\u003e\u003c/a\u003eGames"],"sub_categories":[],"readme":"# Sweeper\n\nThis is a basic ncurses minesweeper game.\nIt is written in Python, using the awesome [curtsies](https://github.com/bpython/curtsies) library for interacting with the terminal.\n\n## Installation\n\nThis requires [poetry](https://python-poetry.org/) to install.\nIf you don't have `poetry`:\n\n```bash\n$ pip install poetry\n```\n\nTo install the game:\n\n```bash\n$ poetry install\n```\n\n## Running\n\nRun with `poetry` like so:\n\n```bash\n$ poetry run ./sweeper.py\n```\n\n## Interface\n\nThe following commands are supported:\n\n------------------------------------\n| Key | Action                      |\n| :-: | :--                         |\n| h   | Display in-game help menu   |\n| c   | Close any open in-game menu |\n| l   | Pick difficulty level       |\n| n   | Start a new game            |\n------------------------------------\n\nWhile a game is in-progress, use the arrow keys (←,↑,→,↓) to move the cursor around the mine field.\nHit `\u003cSPACE\u003e` to open the cell under the cursor.\nHit `f` to flag a cell as a mine.\nHitting `\u003cSPACE\u003e` on an already-opened clue cell will highlight adjacent cells.\nIf the number of neighboring cells that are flagged equals the value of the clue, then all remaining unflagged cells will be opened.\n\n## Screenshot\n\n\u003cimg src=\"https://raw.github.com/igor47/sweeper/master/sweeper.png\" /\u003e\n\n## TODO\n\nI wanted to implement a version of sweeper where you don't have to guess, but this turned out to be more complicated than I thought.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figor47%2Fsweeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figor47%2Fsweeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figor47%2Fsweeper/lists"}