Skip to content

sharryXR/Brain_training_games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Brain Training Games 🧠

一个包含多个大脑训练游戏的项目集合,用 Python 和 pygame 开发。

游戏列表

1. 舒尔特方格 (Schulte Grid Game)

一款专注力训练游戏,通过快速定位和点击网格中的数字来提升注意力和视觉搜索能力。

特性:

  • 三个难度等级:5x5、6x6、7x7
  • 实时计时与错误罚时
  • 排行榜系统,记录top 10成绩
  • 动画粒子效果与实时反馈

操作:

cd src
python schulte_game.py

2. 魔鬼计算 (Devil Calc Game)

一款逻辑训练和快速计算游戏,测试你的数学思维和反应速度。

特性:

  • 两种游戏模式:倒计时与竞速
  • N-back 认知挑战
  • 实时评分与反馈

操作:

cd src
python devil_calc.py

项目结构

.
├── src/                    # 源代码和资源
│   ├── devil_calc.py      # 魔鬼计算游戏
│   ├── schulte_game.py    # 舒尔特方格游戏
│   ├── schulte_game.html  # 舒尔特方格网页版
│   └── schulte_scores.json # 排行榜数据
├── specs/                 # PyInstaller 配置
├── .gitignore
└── README.md

环境要求

  • Python 3.8+
  • pygame 2.0+
  • tkinter (通常已包含在 Python 中)

安装依赖

pip install pygame

打包成 EXE

使用 PyInstaller 将游戏打包成独立可执行文件:

cd specs
python -m PyInstaller --noconfirm --windowed --onefile 舒尔特方格.spec
python -m PyInstaller --noconfirm --windowed --onefile 魔鬼计算.spec

产物位置:dist/ 文件夹

许可证

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published