{"id":16167378,"url":"https://github.com/ma3ke/mine","last_synced_at":"2025-09-02T06:37:33.596Z","repository":{"id":136351059,"uuid":"441214755","full_name":"ma3ke/mine","owner":"ma3ke","description":"My minesweeper game.","archived":false,"fork":false,"pushed_at":"2022-07-03T18:15:57.000Z","size":91,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-02T06:37:33.400Z","etag":null,"topics":["cli","minesweeper","rust","stuctopt","terminal","tui","winit"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/ma3ke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2021-12-23T15:03:01.000Z","updated_at":"2023-01-10T22:35:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"69c22e83-6d62-482e-a0d3-4c7ecb6b4a9e","html_url":"https://github.com/ma3ke/mine","commit_stats":null,"previous_names":["ma3ke/mine"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ma3ke/mine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma3ke%2Fmine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma3ke%2Fmine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma3ke%2Fmine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma3ke%2Fmine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ma3ke","download_url":"https://codeload.github.com/ma3ke/mine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma3ke%2Fmine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273244306,"owners_count":25070958,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"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":["cli","minesweeper","rust","stuctopt","terminal","tui","winit"],"created_at":"2024-10-10T03:07:54.374Z","updated_at":"2025-09-02T06:37:33.559Z","avatar_url":"https://github.com/ma3ke.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mine \n\nA minesweeper game with a terminal and graphical interface created by [Koen Westendorp](https://github.com/KoenWestendorp).\n\n![Tui screenshot](images/tui_screenshot.png)\n\n\u003c!--![Tui gameplay](images/tui_gameplay.gif)--\u003e\n\n![Gui screenshot](images/gui_screenshot.png)\n\n## Installation\n\nGo ahead and try out for yourself! :)\n\n```zsh\ngit clone https://github.com/KoenWestendorp/mine.git\ncd mine\ncargo install --path .\n```\n\n### Features\n\nBy default, the `tui` feature is enabled. The `gui` feature can be enabled by using \n\n```zsh\ncargo install --features=gui --path .\n```\n\n## Usage\n\n```zsh\nmine \u003cSUBCOMMAND\u003e\n```\n\n### Subcommands\n\n`tui`\n: Terminal interface for Mine.\n\n`gui`\n: Graphical interface for Mine.\n\n`help`\n: Prints help message or the help of the given subcommand.\n\n### Flags\n\n`--help`\n: Prints help information.\n\n`-V, --version`\n: Prints version information.\n\n`-w, --width \u003cwidth\u003e`\n: Field width (default: 9)\n\n`-h, --height \u003cheight\u003e`\n: Field height (default: 9)\n\n`-m, --mines \u003cmines\u003e`\n: The number of mines to be placed in the field (default: 10)\n\n## Controls\n\n### Movement \n\n\u0026larr;, \u0026darr;, \u0026uarr;, \u0026rarr;\n: Arrows for cursor movement.\n\n`h`, `j`, `k`, `l`\n: Vim movement bindings!\n\n`H`, `J`, `K`, `L`, `g`, `G`, `0`, `$`\n: Move to edges.\n: Note: `$` to move to the right edge of the field has not been implemented in the gui, yet.\n\n### Actions\n\n`f`, `\u003cSpace\u003e`\n: Flag selected cell.\n\n`r`, `\u003cEnter\u003e`, `\u003cTab\u003e`\n: Reveal selected cell.\n: Double-pressing will reveal around the cell if the correct number of flags is set around the cell.\n\n`q`, `^C`\n: Quit the program.\n\n## Warning\n\nPlease note that the gui mode is still _extremely_ unstable, and hardly usable if you do not really know it. I am learning about this through making it. Sometimes, my display manager crashes, for example, because of resizing issues. Any ideas on improving this are _very_ welcome :)\n\n## About\n\nThis program is written in [Rust](https://rust-lang.org). \n[structopt](https://crates.io/crates/structopt) is used for command line argument parsing, \n[console](https://crates.io/crates/console) for terminal utilities, and \n[winit](https://crates.io/crates/winit) for the gui.\n\n\nContributions very, very welcome :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fma3ke%2Fmine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fma3ke%2Fmine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fma3ke%2Fmine/lists"}