LoveDaisy/tetris_game
소개
AI가 탑재된 테트리스 게임입니다.
게임 및 에뮬레이션측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTetris 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.pyis the main application.tetris_model.pyis the data model for this game.tetris_ai.pyis 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 ~

관련 프로젝트 살펴보기
불러오는 중…