diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-12-21 22:17:00 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-12-21 22:17:00 +0100 |
commit | 6e848e62a2a2be4a5e9ce6c4664656a383e61368 (patch) | |
tree | 0056936cad0fa878f018d3b032d2fde2e5e857cd | |
parent | 5eba2315e0679b7a6e3d07b2d558fabb3505f65a (diff) |
Fix initial position
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-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] |