diff --git a/.DS_Store b/.DS_Store index 0e32e6a..8060a15 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/gamefiles/.DS_Store b/gamefiles/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/gamefiles/.DS_Store differ diff --git a/gamefiles/__pycache__/board.cpython-312.pyc b/gamefiles/__pycache__/board.cpython-312.pyc index 6257f33..f730361 100644 Binary files a/gamefiles/__pycache__/board.cpython-312.pyc and b/gamefiles/__pycache__/board.cpython-312.pyc differ diff --git a/gamefiles/__pycache__/man.cpython-312.pyc b/gamefiles/__pycache__/man.cpython-312.pyc index 66a7bb5..a325f5d 100644 Binary files a/gamefiles/__pycache__/man.cpython-312.pyc and b/gamefiles/__pycache__/man.cpython-312.pyc differ diff --git a/gamefiles/__pycache__/mine.cpython-312.pyc b/gamefiles/__pycache__/mine.cpython-312.pyc index eb10a01..a8247ff 100644 Binary files a/gamefiles/__pycache__/mine.cpython-312.pyc and b/gamefiles/__pycache__/mine.cpython-312.pyc differ diff --git a/gamefiles/__pycache__/snack.cpython-312.pyc b/gamefiles/__pycache__/snack.cpython-312.pyc index f3b738e..1064758 100644 Binary files a/gamefiles/__pycache__/snack.cpython-312.pyc and b/gamefiles/__pycache__/snack.cpython-312.pyc differ diff --git a/gamefiles/board.py b/gamefiles/board.py index b5ff948..6712f2e 100644 --- a/gamefiles/board.py +++ b/gamefiles/board.py @@ -50,7 +50,7 @@ class Board: def play_turn(self,game): '''Checks after every turn (turn is length of time specified in retro) if the game needs snacks or mines.''' - game.log(game.state['Score']) + #game.log(game.state['Score']) while self.game_needs_snacks(game): self.add_snack(game) while self.game_needs_mines(game): diff --git a/gamefiles/helpers.py b/gamefiles/helpers.py index 60ff64c..0e88a9e 100644 --- a/gamefiles/helpers.py +++ b/gamefiles/helpers.py @@ -1,4 +1,5 @@ -#List of helper functions to move the man +'''List of helper functions to move the man, none used in this game, but here in + case needed for future version''' '''def add(vec0, vec1): """Adds two vectors. diff --git a/gamefiles/mine counter.py b/gamefiles/mine counter.py deleted file mode 100644 index 6406dc5..0000000 --- a/gamefiles/mine counter.py +++ /dev/null @@ -1,28 +0,0 @@ - - -MAX_MINES = 50 -LEVELS = [ -[5, 10], -[50, 20], -[75, 30], -[100, 40] -] - -def num_mines(score): - for limit, n in LEVELS: - if score < limit: - return n - return MAX_MINES -''' - if score < 5: - num_mines = 10 - if 10 <= score <50: - num_mines = 20 - if 50 <= score <75: - num_mines = 30 - if 75 <= score <100: - num_mines = 40 - #else: - #num_mines = 50 - return num_mines - ''' \ No newline at end of file diff --git a/gamefiles/minecounter.py b/gamefiles/minecounter.py deleted file mode 100644 index 11e3b2e..0000000 --- a/gamefiles/minecounter.py +++ /dev/null @@ -1,2 +0,0 @@ -'''Not currently in use, may use if minecounter needs to be more complex -but for now it is included in board.py''' \ No newline at end of file diff --git a/gamefiles/nav_game.py b/gamefiles/nav_game.py index f809190..8e3ef85 100644 --- a/gamefiles/nav_game.py +++ b/gamefiles/nav_game.py @@ -5,7 +5,7 @@ from board import Board width = 25 height = 25 -state= {"Score":00} +state= {"Score": 0} num_snacks = 10 board = Board(width,height,num_snacks,state) #sets the original board @@ -13,6 +13,6 @@ board = Board(width,height,num_snacks,state) #sets the original board game = Game( board.get_agents(num_snacks,state), state, - board_size = (width, height),debug=True + board_size = (width, height),debug=False ) game.play() \ No newline at end of file diff --git a/gamefiles/score.py b/gamefiles/score.py deleted file mode 100644 index 6406dc5..0000000 --- a/gamefiles/score.py +++ /dev/null @@ -1,28 +0,0 @@ - - -MAX_MINES = 50 -LEVELS = [ -[5, 10], -[50, 20], -[75, 30], -[100, 40] -] - -def num_mines(score): - for limit, n in LEVELS: - if score < limit: - return n - return MAX_MINES -''' - if score < 5: - num_mines = 10 - if 10 <= score <50: - num_mines = 20 - if 50 <= score <75: - num_mines = 30 - if 75 <= score <100: - num_mines = 40 - #else: - #num_mines = 50 - return num_mines - ''' \ No newline at end of file