diff options
-rw-r--r-- | cameltris/player.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cameltris/player.py b/cameltris/player.py index aee2d58..90eb2db 100644 --- a/cameltris/player.py +++ b/cameltris/player.py @@ -214,8 +214,8 @@ class Player: if element is not None: non_empty_cols.add(col_id) - y_offset = (4 - len(non_empty_rows)) / 2 - x_offset = (4 - len(non_empty_cols)) / 2 + y_offset = (4 - len(non_empty_rows)) // 2 + x_offset = (4 - len(non_empty_cols)) // 2 # Display the next piece for row_idx, row in enumerate(non_empty_rows): |