From 0d79df68887626f3f7db4678de997d6171dc08bf Mon Sep 17 00:00:00 2001 From: pascale Date: Sat, 21 Feb 2015 15:59:28 -0800 Subject: [PATCH] changed borders --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 2a0579526..20fd1aeb8 100644 --- a/app/main.py +++ b/app/main.py @@ -65,8 +65,8 @@ def seppuku(nagini, board): def look_ahead(head_x, head_y, board): - width = len(board) - height = len(board[0]) + width = len(board) - 1 + height = len(board[0]) - 1 directions = [] safe_states = ('empty', 'food')