Skip to content

Commit ae21f3c

Browse files
Merge branch 'main' of github.com:linqs/pacman
2 parents 4936d5d + 203322b commit ae21f3c

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

pacai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
The pacai package is the top-level package for the Pacman AI project maintained by EduLinq, Eriq Augustine, and the LINQS lab at UCSC.
33
"""
44

5-
__version__ = '2.0.0'
5+
__version__ = '2.0.1'

pacai/agents/minimax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_action(self, state: pacai.core.gamestate.GameState) -> pacai.core.action
7373
self._stats_states_evaluated.append(0)
7474
self._stats_nodes_visited.append(0)
7575

76-
actions, score = self.minimax_step(state, self.ply_count + 1, math.inf, -math.inf)
76+
actions, score = self.minimax_step(state, self.ply_count + 1, -math.inf, math.inf)
7777
action = self.rng.choice(actions)
7878

7979
logging.debug("Turn: %d, Game State Score: %d, Minimax Score: %d, Chosen Action: %s, States Evaluated: %d, Nodes Visited: %d.",

pacai/core/board.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def apply_action(self, action: pacai.core.action.Action) -> 'Position':
164164

165165
return self.add(offset)
166166

167-
def __lt__(self, other: 'Position') -> bool:
167+
def __lt__(self, other: 'Position') -> bool: # type: ignore[override]
168168
return (self._hash < other._hash)
169169

170170
def __eq__(self, other: object) -> bool:

pacai/core/mdp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self,
5454
def is_terminal(self) -> bool:
5555
return (self.position == TERMINAL_POSITION)
5656

57-
def __lt__(self, other: 'MDPStatePosition') -> bool:
57+
def __lt__(self, other: 'MDPStatePosition') -> bool: # type: ignore[override]
5858
return (self.position < other.position)
5959

6060
def __eq__(self, other: object) -> bool:

pacai/gridworld/mdp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def get_transitions(self, state: pacai.core.mdp.MDPStatePosition, action: pacai.
132132
if (action not in possible_actions):
133133
raise ValueError(f"Got an illegal action '{action}'. Available actions are: {possible_actions}.")
134134

135-
(north_state, east_state, south_state, west_state) = self._get_move_states(state)
135+
(north_state, east_state, south_state, west_state) = self._get_move_states(state) # pylint: disable=unbalanced-tuple-unpacking
136136

137137
transitions = []
138138

pacai/student/multiagents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class MyMinimaxLikeAgent(pacai.agents.minimax.MinimaxLikeAgent):
4141
(you can ignore alpha and beta).
4242
4343
To implement minimax with alpha-beta pruning,
44-
minimax_step_max() and minimax_step_min() with alpha an beta are required.
44+
minimax_step_max() and minimax_step_min() with alpha and beta are required.
4545
4646
To implement expectimax, minimax_step_max() and minimax_step_expected_min() are required.
4747

0 commit comments

Comments
 (0)