Skip to content
/ MoYu Public

Terminal MoYu game, A command-line implementation of mini-games in Python

License

Notifications You must be signed in to change notification settings

Dtheme/MoYu

Repository files navigation

MoYu

无聊,娱乐repo

目前包含的游戏:

  1. 2048(2048.py)
  2. 贪吃蛇(SnakeGame.py)
  3. 俄罗斯方块(Tetris.py)
  4. 打砖块(PongBrick.py)
  5. 五子棋(GomokuGame)

使用很简单:

  1. clone仓库到本地
  2. cd ~/xx/MoYu 终端导航到MoYu文件假路径
  3. python3 gamename.py执行脚本
  4. 如果提示缺少某个依赖,先pip install xxxx安装一下

以2048游戏为例:

  1. 依赖readcharpip install readchar
  2. 在终端中运行游戏:python3 2048.py
  3. 游戏开始后,使用 ←, →, ↑, ↓ 进行上下左右移动方块。
  4. 使用命令 c 继续游戏,r 重新开始游戏,q 退出游戏。
  5. 🎮

试玩效果

平台:macOS 14.4.1

终端:iterm2

代码层面支持了Windows终端,但未过经严格测试

试玩效果

五子棋试玩效果

About

Terminal MoYu game, A command-line implementation of mini-games in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages