{"id":13612199,"url":"https://github.com/mayerui/sudoku","last_synced_at":"2025-04-13T11:31:43.006Z","repository":{"id":48135920,"uuid":"147114859","full_name":"mayerui/sudoku","owner":"mayerui","description":"C++实现的跨平台数独游戏，命令行操作易上手，可以在开发间隙用来放松身心。数百行代码，初学者也可以轻松掌握。","archived":false,"fork":false,"pushed_at":"2024-12-08T07:03:10.000Z","size":77,"stargazers_count":1148,"open_issues_count":3,"forks_count":257,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-12-08T08:17:08.412Z","etag":null,"topics":["cpp","game","linux","macos","sudoku","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mayerui.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}},"created_at":"2018-09-02T19:21:50.000Z","updated_at":"2024-12-08T07:03:14.000Z","dependencies_parsed_at":"2024-06-03T04:01:32.987Z","dependency_job_id":"242cba91-2b53-4a95-bba2-fef367fca202","html_url":"https://github.com/mayerui/sudoku","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/mayerui%2Fsudoku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayerui%2Fsudoku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayerui%2Fsudoku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayerui%2Fsudoku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mayerui","download_url":"https://codeload.github.com/mayerui/sudoku/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705680,"owners_count":21148575,"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","linux","macos","sudoku","windows"],"created_at":"2024-08-01T20:00:24.745Z","updated_at":"2025-04-13T11:31:43.000Z","avatar_url":"https://github.com/mayerui.png","language":"C++","readme":"# sudoku\nC++ 实现的跨平台数独游戏，命令行操作易上手，可以在开发间隙用来放松身心。数百行代码，初学者也可以轻松掌握。\n欢迎通过pull request的方式来添加功能或修复缺陷。\n\n## 感谢贡献者\n\u003ca href=\"https://github.com/mayerui/sudoku/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=mayerui/sudoku\" /\u003e\n\u003c/a\u003e\n\n## 特性\n1. 跨平台/编译器 : Linux/Windows/macOS [![Linux](https://github.com/mayerui/sudoku/actions/workflows/ci-linux.yml/badge.svg)](https://github.com/mayerui/sudoku/actions/workflows/ci-linux.yml) [![Windows](https://github.com/mayerui/sudoku/actions/workflows/ci-windows.yml/badge.svg)](https://github.com/mayerui/sudoku/actions/workflows/ci-windows.yml) [![macOS](https://github.com/mayerui/sudoku/actions/workflows/ci-macos.yml/badge.svg)](https://github.com/mayerui/sudoku/actions/workflows/ci-macos.yml)\n2. 多语言：English/中文\n3. 无第三方库依赖\n4. 控制台运行\n\n## 依赖\n1. cmake 3.12及以上\n2. C++17\n\n## 构建\n``` shell\ncmake -B build -S .\ncmake --build build\n```\n\n## 运行\n构建步骤生成的 `sudoku` 可执行文件在 `bin` 目录下\n``` shell\n./sudoku  # 直接启动\n./sudoku -l filename  # 读取游戏进度文件\n./sudoku -h  # 获取帮助信息\n```\n\n## 操作说明\n- 0 删除已填入数字\n- u 撤销上一步操作\n- enter 尝试通关\n- esc 退出游戏\n\n### 普通模式\n- w 光标上移↑\n- a 光标左移←\n- s 光标下移↓\n- d 光标右移→\n\n### VIM模式\n- k 光标上移↑\n- h 光标左移←\n- j 光标下移↓\n- l 光标右移→\n\n## 项目结构\n```bash\n│--.gitignore  \n│--build.bat        // Windows 一键编译脚本  \n│--build.sh         // Linux/macOS 一键编译脚本  \n│--CMakeLists.txt   // CMake 项目文件  \n│--README.md     \n└--src              // 源代码目录  \n   │--block.cpp     // 数独格子组合类，可代表行、列、九宫格  \n   │--block.h  \n   │--color.h       // 颜色类  \n   │--command.cpp   // 命令类，实现了撤销功能  \n   │--command.h     \n   │--common.h      // 公共头文件  \n   │--input.cpp     // 输入类  \n   │--input.h   \n   │--main.cpp      // 入口文件  \n   │--scene.cpp     // 游戏场景类  \n   │--scene.h   \n   │--test.cpp      // 测试文件  \n   │--test.h  \n   └--utility.inl   // 一些实用的全局函数  \n```\n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayerui%2Fsudoku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayerui%2Fsudoku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayerui%2Fsudoku/lists"}