TetrArcade/test.py
adrienmalin 0d6386d22b music!
change API (pieces are attributes of TetrominoContainers)
2019-10-03 01:26:31 +02:00

17 lines
305 B
Python

# -*- coding: utf-8 -*-
from TetrArcade import TetrArcade, State
game = TetrArcade()
game.new_game()
game.move_left()
game.move_right()
game.swap()
game.rotate_clockwise()
game.rotate_counter()
for i in range(12):
game.soft_drop()
game.on_draw()
while game.state != State.OVER:
game.hard_drop()