From 9aa461fe07b6e781b61c2355437edbab88f68539 Mon Sep 17 00:00:00 2001 From: adrienmalin <41926238+adrienmalin@users.noreply.github.com> Date: Tue, 1 Oct 2019 19:58:39 +0200 Subject: [PATCH] add test --- test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..af799e4 --- /dev/null +++ b/test.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- + +from TetrArcade import TetrArcade, tetrislogic + +game = TetrArcade() +game.new_game() +game.move_left() +game.move_right() +game.rotate_clockwise() +game.rotate_counter() +for i in range(12): + game.soft_drop() +game.on_draw() +while game.state != tetrislogic.State.OVER: + game.hard_drop() \ No newline at end of file