diff options
-rwxr-xr-x | cameltris.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cameltris.py b/cameltris.py index fdb0845..eefd111 100755 --- a/cameltris.py +++ b/cameltris.py @@ -131,7 +131,7 @@ for row_id, row in enumerate(current_piece.elements): break initial_y_position = -row_id -initial_x_position = (len(grid[0]) // 2) - (len(current_piece.elements[0]) / 2) +initial_x_position = (len(grid[0]) // 2) - (len(current_piece.elements[0]) // 2) current_piece_position = [initial_y_position, initial_x_position] |