← 开源
LoveDaisy

tetris_game

A Tetris Game with AI

ApplicationsOtherPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
764
Star
286
Fork
+0
本周
3
贡献者
创建于 2017-07-05 · 更新于 2026-10-06 · 今日第 14069 名
主要开发者
LoveDaisykmw2281amir-valizadeh

LoveDaisy/tetris_game 排名第 14,069,有 764 个星标。

同类别比较

LoveDaisy/tetris_game 排名第 14,069,此处有 8 个同类条目;alexandremendoncaalvaro/CorridorKey-Runtime 排名第 14,072。

同类别比较
名称排名指标
ZeroTang05/VideoAdGuard14,052
语言:
TypeScript
星标数:
766
分叉数:
37
简介:
哔哩哔哩浏览器插件:基于大语言模型,对B站视频中的植入广告进行检测。一键跳过视频中的植入/口播广告。
mandiant/stringsifter14,056
语言:
Python
星标数:
766
分叉数:
125
简介:
A machine learning tool that ranks strings based on their relevance for malware analysis.
metabase/dataset-generator14,057
语言:
TypeScript
星标数:
766
分叉数:
48
简介:
AI Dataset Generator – Create realistic datasets for demos, learning, and dashboards
L1AD/claude-task-viewer14,062
语言:
HTML
星标数:
765
分叉数:
90
简介:
A web-based Kanban board for viewing Claude Code tasks
alexandremendoncaalvaro/CorridorKey-Runtime14,072
语言:
C++
星标数:
764
分叉数:
20
简介:
Native AI keying runtime and OFX plugin for DaVinci Resolve, built in collaboration with Corridor Digital.
chenpipi0807/ComfyUI-Index-TTS14,074
语言:
Python
星标数:
764
分叉数:
71
简介:
使用IndexTTS模型在ComfyUI中实现高质量文本到语音转换的自定义节点。支持中文和英文文本,可以基于参考音频复刻声音特征。
neondatabase/appdotbuild-agent14,077
语言:
Python
星标数:
764
分叉数:
113
简介:
The agent that generates working apps (and maybe some other things)
carlrannaberg/claudekit14,078
语言:
TypeScript
星标数:
763
分叉数:
117
简介:
A toolkit of custom commands, hooks, and utilities for Claude Code
关键参数与规格
关键参数与规格
参数值
语言Python
类别Applications
子类别Other
关键词Gaming
星标数764
分叉数286
贡献者3
创建日期2017-07-05
更新日期2026-10-06
1 天星标数0
7 天星标数0
排名14,069
上次排名13,940
排名变化-129
7 天星标排名14,276
上次 7 天星标排名14,293
7 天星标排名变化17
总星标排名13,860
上次总星标排名13,837
总星标排名变化-23
国家China
README 摘录

Tetris Game It is a python implementatino of Tetris Game, and a simple AI to play game automatically. Need python3, PyQt5 and NumPy to be installed. Run from command line and you start to play or watch the AI playing. Play manually If you want play by yourself, you should uncomment this line in : Or just comment this line: Current config could be too fast for human player. So you may want make it slower, by changing value of defined

here: Play rules Just like classical Tetris Game. You use *up* key to rotate a shape, *left* key to move left and *right* key to move right. Also you can use *space* key to drop down current shape immediately. If you want a pause, just press *P* key.

常见问题

记录了多少星标和分叉?

LoveDaisy/tetris_game 有 764 个星标和 286 个分叉。

仓库排名是多少?

LoveDaisy/tetris_game 排名第 14,069。

记录的语言和类别是什么?

LoveDaisy/tetris_game 有 764 个星标,语言为 Python,类别为 Applications。

哪个仓库排名最接近?

LoveDaisy/tetris_game 与 alexandremendoncaalvaro/CorridorKey-Runtime 比较,后者排名第 14,072,有 764 个星标。

README

Tetris Game

It is a python implementatino of Tetris Game, and a simple AI to play game automatically.

Need python3, PyQt5 and NumPy to be installed.

  • tetris_game.py is the main application.
  • tetris_model.py is the data model for this game.
  • tetris_ai.py is the AI part.

Run tetris_game.py from command line and you start to play or watch the AI playing.

$ python3 tetris_game.py

Play manually

If you want play by yourself, you should uncomment this line in tetris_game.py:

# TETRIS_AI = None

Or just comment this line:

from tetris_ai import TETRIS_AI

Current config could be too fast for human player. So you may want make it slower, by changing value of Tetris.speed defined here:

class Tetris(QMainWindow):
    ...
    def initUI(self):
        ...
        self.speed = 10

Play rules

Just like classical Tetris Game. You use up key to rotate a shape, left key to move left and right key to move right. Also you can use space key to drop down current shape immediately. If you want a pause, just press P key. The right panel shows the next shape.

~ HAVE FUN ~

排名相邻
同类项目