{"id":23479711,"url":"https://github.com/rdiachenko/minesweeper","last_synced_at":"2025-07-03T22:04:21.114Z","repository":{"id":150688116,"uuid":"56994556","full_name":"rdiachenko/minesweeper","owner":"rdiachenko","description":"Minesweeper - https://en.wikipedia.org/wiki/Microsoft_Minesweeper","archived":false,"fork":false,"pushed_at":"2025-05-29T19:11:51.000Z","size":246,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T22:03:13.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/rdiachenko.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-04-24T21:12:15.000Z","updated_at":"2025-05-29T19:11:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"8997fa67-e8fc-4f1d-aa1c-aed556402efd","html_url":"https://github.com/rdiachenko/minesweeper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rdiachenko/minesweeper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdiachenko%2Fminesweeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdiachenko%2Fminesweeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdiachenko%2Fminesweeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdiachenko%2Fminesweeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdiachenko","download_url":"https://codeload.github.com/rdiachenko/minesweeper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdiachenko%2Fminesweeper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263410759,"owners_count":23462295,"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-12-24T19:34:03.131Z","updated_at":"2025-07-03T22:04:21.086Z","avatar_url":"https://github.com/rdiachenko.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minesweeper\nLight version of [Microsoft Minesweeper](https://en.wikipedia.org/wiki/Microsoft_Minesweeper) for Linux. Some interesting implementation moments are described [here](https://rdiachenko.blogspot.com/2016/10/minesweeper-for-linux-just-for-fun.html).\n\n1. [Required dependencies](https://github.com/rdiachenko/minesweeper#required-dependencies)\n2. [Build and install](https://github.com/rdiachenko/minesweeper#build-and-install)\n3. [Launch](https://github.com/rdiachenko/minesweeper#launch)\n4. [Launch with default configuration](https://github.com/rdiachenko/minesweeper#launch-with-default-configuration)\n5. [Launch with custom configuration](https://github.com/rdiachenko/minesweeper#launch-with-custom-configuration)\n  1. [Classic style](https://github.com/rdiachenko/minesweeper#classic-style)\n  2. [RD style](https://github.com/rdiachenko/minesweeper#rd-style)\n\n## Required dependencies\n* SDL2\n* SDL2_image\n```\n# E.g.: installation for Fedora 24\n$ sudo dnf install SDL2 SDL2-devel SDL2_image SDL2_image-devel\n\n# or Ubuntu 2x.xx\n$ apt-get install libsdl2-dev libsdl2-image-dev -y\n```\n\n## Build and install\n```\nminesweeper]$ mkdir build \u0026\u0026 cd build\nminesweeper]$ cmake .. -DCMAKE_CXX_STANDARD=17\nminesweeper]$ make\nminesweeper]$ make install\n\n# after completion minesweeper should be installed in minesweeper/release folder\n```\n\n## Launch\n```\nrelease]$ ./minesweeper [path to config]\n```\n\n## Launch with default configuration\n```\n# default configuration\nrelease]$ cat resources/classic.conf \nmines=99\nfield_rows=16\nfield_cols=30\nsprite_img=resources/classic.png\nsprite_txt=resources/classic.txt\n\n# launch\nrelease]$ ./minesweeper\n```\n![](https://raw.githubusercontent.com/rdiachenko/minesweeper/master/screenshots/classic-in-progress.png)\n\n![](https://raw.githubusercontent.com/rdiachenko/minesweeper/master/screenshots/classic-lose.png)\n\n## Launch with custom configuration\n### Classic style\n```\n# custom configuration\nrelease]$ cat resources/classic.conf \nmines=10\nfield_rows=10\nfield_cols=10\nsprite_img=resources/classic.png\nsprite_txt=resources/classic.txt\n\n# launch\nrelease]$ ./minesweeper resources/classic.conf\n```\n![](https://raw.githubusercontent.com/rdiachenko/minesweeper/master/screenshots/classic-win.png)\n\n### RD style\n```\n# custom configuration\nrelease]$ cat resources/rd.conf \nmines=99\nfield_rows=16\nfield_cols=30\nsprite_img=resources/rd.png\nsprite_txt=resources/rd.txt\n\n# launch\nrelease]$ ./minesweeper resources/rd.conf\n```\n![](https://raw.githubusercontent.com/rdiachenko/minesweeper/master/screenshots/rd-in-progress.png)\n\n![](https://raw.githubusercontent.com/rdiachenko/minesweeper/master/screenshots/rd-lose.png)\n\n```\n# custom configuration\nrelease]$ cat resources/rd.conf\nmines=7\nfield_rows=7\nfield_cols=14\nsprite_img=resources/rd.png\nsprite_txt=resources/rd.txt\n\n# launch\nrelease]$ ./minesweeper resources/rd.conf\n```\n![](https://raw.githubusercontent.com/rdiachenko/minesweeper/master/screenshots/rd-win.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdiachenko%2Fminesweeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdiachenko%2Fminesweeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdiachenko%2Fminesweeper/lists"}