diff --git a/.gitignore b/.gitignore index d53631f..c9f2933 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ venv envs *.ipynb -traverseCraft/__pycache__ +*/*/__pycache__ +src/traverseCraft/__pycache__ tests/__pycache__ test_grid.py test_tree.py diff --git a/pyproject.toml b/pyproject.toml index 825f8b2..e6d2e16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "traverseCraft" -version = "0.5.2" +version = "0.6.0" authors = [ {name = "Srajan Chourasia", email = "srajanstark.ash@gmail.com"}, {name = "Varun Patrikar", email = "patrikarvarun@gmail.com"}, diff --git a/setup.py b/setup.py index 51e2d06..e2e010e 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='TraverseCraft', - version='0.5.0', + version='0.6.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/__pycache__/__init__.cpython-35.pyc b/src/traverseCraft/__pycache__/__init__.cpython-35.pyc deleted file mode 100644 index 8f76027..0000000 Binary files a/src/traverseCraft/__pycache__/__init__.cpython-35.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/__init__.cpython-36.pyc b/src/traverseCraft/__pycache__/__init__.cpython-36.pyc deleted file mode 100644 index 363188b..0000000 Binary files a/src/traverseCraft/__pycache__/__init__.cpython-36.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/__init__.cpython-37.pyc b/src/traverseCraft/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index c646174..0000000 Binary files a/src/traverseCraft/__pycache__/__init__.cpython-37.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/__init__.cpython-38.pyc b/src/traverseCraft/__pycache__/__init__.cpython-38.pyc deleted file mode 100644 index e2326ea..0000000 Binary files a/src/traverseCraft/__pycache__/__init__.cpython-38.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/agent.cpython-36.pyc b/src/traverseCraft/__pycache__/agent.cpython-36.pyc deleted file mode 100644 index e61673a..0000000 Binary files a/src/traverseCraft/__pycache__/agent.cpython-36.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/agent.cpython-37.pyc b/src/traverseCraft/__pycache__/agent.cpython-37.pyc deleted file mode 100644 index 409bf28..0000000 Binary files a/src/traverseCraft/__pycache__/agent.cpython-37.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/agent.cpython-38.pyc b/src/traverseCraft/__pycache__/agent.cpython-38.pyc deleted file mode 100644 index 4bba8c4..0000000 Binary files a/src/traverseCraft/__pycache__/agent.cpython-38.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/dataStructures.cpython-36.pyc b/src/traverseCraft/__pycache__/dataStructures.cpython-36.pyc deleted file mode 100644 index a849228..0000000 Binary files a/src/traverseCraft/__pycache__/dataStructures.cpython-36.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/dataStructures.cpython-37.pyc b/src/traverseCraft/__pycache__/dataStructures.cpython-37.pyc deleted file mode 100644 index 630601a..0000000 Binary files a/src/traverseCraft/__pycache__/dataStructures.cpython-37.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/dataStructures.cpython-38.pyc b/src/traverseCraft/__pycache__/dataStructures.cpython-38.pyc deleted file mode 100644 index c4bfc27..0000000 Binary files a/src/traverseCraft/__pycache__/dataStructures.cpython-38.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/iconHashInfo.cpython-38.pyc b/src/traverseCraft/__pycache__/iconHashInfo.cpython-38.pyc deleted file mode 100644 index 3f43a2d..0000000 Binary files a/src/traverseCraft/__pycache__/iconHashInfo.cpython-38.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/world.cpython-36.pyc b/src/traverseCraft/__pycache__/world.cpython-36.pyc deleted file mode 100644 index 78bb427..0000000 Binary files a/src/traverseCraft/__pycache__/world.cpython-36.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/world.cpython-37.pyc b/src/traverseCraft/__pycache__/world.cpython-37.pyc deleted file mode 100644 index 4ffcfb6..0000000 Binary files a/src/traverseCraft/__pycache__/world.cpython-37.pyc and /dev/null differ diff --git a/src/traverseCraft/__pycache__/world.cpython-38.pyc b/src/traverseCraft/__pycache__/world.cpython-38.pyc deleted file mode 100644 index 33c41f9..0000000 Binary files a/src/traverseCraft/__pycache__/world.cpython-38.pyc and /dev/null differ diff --git a/src/traverseCraft/world.py b/src/traverseCraft/world.py index ee621c4..2cadb2c 100644 --- a/src/traverseCraft/world.py +++ b/src/traverseCraft/world.py @@ -126,8 +126,8 @@ def __init__(self, worldName:str, rows:int, cols:int, cellSize:int=10, pathColor self._goalCells = None # ~~~~~ Window Attributes ~~~~~ # - self._windowHeight = ((self._rows + 2) * (self._cellSize + 2*self._cellPadding)) - self._windowWidth = (int)(self._cols + 0.75) * (self._cellSize + 2*self._cellPadding) + self._windowHeight = (int)((self._rows + 0.5) * (self._cellSize + 2*self._cellPadding)) + 45 + self._windowWidth = max((int)((self._cols + 0.5) * (self._cellSize + 2*self._cellPadding)), 200) # ~~~~~ Button Attributes ~~~~~ # self._buttonBgColor = buttonBgColor @@ -188,7 +188,7 @@ def aboutWorld(self): about.add_row(["Columns", self._cols]) about.add_row(["Cell Size", self._cellSize]) about.add_row(["Cell Padding", self._cellPadding]) - about.add_row(["Window Size", f"{self._windowWidth}x{self._windowHeight}"]) + about.add_row(["Window Size", f"{self._windowHeight}x{self._windowWidth}"]) about.add_row(["Path Color", self._pathColor]) about.add_row(["Block Color", self._blockColor]) about.add_row(["Goal Color", self._goalColor])