TetrArcade/test.py
adrienmalin 0970e1f6df V0.3 Release
New musics
Piece lock optimize
2019-10-03 21:33:39 +02:00

18 lines
335 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.matrix.sprites.refresh()
game.on_draw()
while game.state != State.OVER:
game.hard_drop()