Projects
View on GitHub
mayerui/sudoku
mayerui/sudoku has 1,438 GitHub stars and 302 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-06 08:14 UTC. Last push 2026-04-22.
C++实现的跨平台数独游戏,命令行操作易上手,可以在开发间隙用来放松身心。数百行代码,初学者也可以轻松掌握。
Measured star growth
- in 24h
- +1
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalsudoku
C++ 实现的跨平台数独游戏,命令行操作易上手,可以在开发间隙用来放松身心。数百行代码,初学者也可以轻松掌握。 欢迎通过pull request的方式来添加功能或修复缺陷。
感谢贡献者
特性
依赖
- cmake 3.12及以上
- C++17
构建
cmake -B build -S .
cmake --build build
运行
构建步骤生成的 sudoku 可执行文件在 bin 目录下
./sudoku # 直接启动
./sudoku -l filename # 读取游戏进度文件
./sudoku -h # 获取帮助信息
操作说明
- 0 删除已填入数字
- u 撤销上一步操作
- enter 尝试通关
- esc 退出游戏
普通模式
- w 光标上移↑
- a 光标左移←
- s 光标下移↓
- d 光标右移→
VIM模式
- k 光标上移↑
- h 光标左移←
- j 光标下移↓
- l 光标右移→
项目结构
│--.gitignore
│--build.bat // Windows 一键编译脚本
│--build.sh // Linux/macOS 一键编译脚本
│--CMakeLists.txt // CMake 项目文件
│--README.md
└--src // 源代码目录
│--block.cpp // 数独格子组合类,可代表行、列、九宫格
│--block.h
│--color.h // 颜色类
│--command.cpp // 命令类,实现了撤销功能
│--command.h
│--common.h // 公共头文件
│--input.cpp // 输入类
│--input.h
│--main.cpp // 入口文件
│--scene.cpp // 游戏场景类
│--scene.h
│--test.cpp // 测试文件
│--test.h
└--utility.inl // 一些实用的全局函数
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,362 starspublic-apis/public-apis
A collective list of free APIs
496,655 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
437,324 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,047 stars