[分享]纯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
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!