diff options
author | Karel Kočí <karel.koci@nic.cz> | 2017-07-20 11:10:22 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2017-07-20 11:16:07 +0200 |
commit | fcf67c83f4ea61330abf125dbe88910e46734c66 (patch) | |
tree | 0dda674631985b884da689d3ea35a6aa3d80370d /turtetris_master/game.py | |
parent | 1784c9bc91ea5cc63a85887d813fe37906a8234d (diff) | |
download | turris-tetris-fcf67c83f4ea61330abf125dbe88910e46734c66.tar.gz turris-tetris-fcf67c83f4ea61330abf125dbe88910e46734c66.tar.bz2 turris-tetris-fcf67c83f4ea61330abf125dbe88910e46734c66.zip |
Input trigger
Diffstat (limited to 'turtetris_master/game.py')
-rw-r--r-- | turtetris_master/game.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/turtetris_master/game.py b/turtetris_master/game.py index 1da176e..cae6ff4 100644 --- a/turtetris_master/game.py +++ b/turtetris_master/game.py @@ -103,6 +103,9 @@ class Game: for b in range(len(stone[a])): sx = 11 - a - x sy = 9 - b - y + print("sx:{0} sy:{1} mx:{2}:{3}".format( + sx, sy, len(self.mx), len(self.mx[0]) + )) if stone[a][b] != 0 and ( sx < 0 or sy < 0 or sx > 11 or sy > 9 or self.mx[sx][sy] != 0): |