From 7d58193bb148c70483e29a3400b403ff408cb975 Mon Sep 17 00:00:00 2001 From: srajan-kiyotaka Date: Fri, 21 Jun 2024 22:05:40 +0530 Subject: [PATCH] fix minor bug in grid world. --- setup.py | 2 +- src/traverseCraft/world.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1e7b94d..00a4a08 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='TraverseCraft', - version='0.9.5', + version='1.0.0', author='Srajan Chourasia, Varun Patrikar', author_email='srajanstark.ash@gmail.com, patrikarvarun@gmail.com', maintainer='Srajan Chourasia, Varun Patrikar', diff --git a/src/traverseCraft/world.py b/src/traverseCraft/world.py index 8b9ae13..654258d 100644 --- a/src/traverseCraft/world.py +++ b/src/traverseCraft/world.py @@ -241,6 +241,7 @@ def constructWorld(self): self._cells[self._rows - 1][self._cols - 1].grid(row=self._rows - 1, column=self._cols - 1, sticky="nsew", padx=self._cellPadding, pady=self._cellPadding) self._root.update() self._world[self._rows - 1][self._cols - 1] = 1 + self._goalCells = [[(self._rows - 1), (self._cols - 1)]] else: for i, j in self._goalCells: self._cells[i][j] = Frame(self._root, width=self._cellSize, height=self._cellSize, bg=self._goalColor, borderwidth=self._borderWidth)