From 6e848e62a2a2be4a5e9ce6c4664656a383e61368 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 21 Dec 2020 22:17:00 +0100 Subject: Fix initial position Signed-off-by: Olivier Gayot --- cameltris.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cameltris.py') 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] -- cgit v1.2.3