[分享]纯python3手写Tetris(俄罗斯方块)游戏

项目简介#

纯 python3 代码,UI 界面使用内置库 tkinter,手写 Tetris (俄罗斯方块) 游戏,第一步完成,实现功能手动游戏,可以暂停。
下一步计划:

  • 为数据查询封装 json,实现 ORM
  • 封装通用数据库操作,首先使用 sqlit3 来存储操作数据
  • 存储历史数据,实现游戏回放
  • 简单 AI
  • 机器学习,改进 AI

项目地址#

https://gitee.com/zhoutk/ptetris

运行方法#

1. install python3, git
2. git clone https://gitee.com/zhoutk/ptetris (or download and unzip source code)
3. cd ptetris
4. python3 tetris

This project surpport windows, linux, macOs

on linux, you must install tkinter first, use this command:  
sudo apt install python3-tk

相关项目#

已经实现了 C++ 版,项目地址:

https://gitee.com/zhoutk/qtetris
本作品采用《CC 协议》,转载必须注明作者和本文链接
zhoutk@189.cn