Skip to content

Commit 3282f78

Browse files
made a dumb mistake...fixed
1 parent 16b5c65 commit 3282f78

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Diff for: .DS_Store

0 Bytes
Binary file not shown.

Diff for: 2048/AI.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def minnieMoveAlphaBetaImportance(self, depth, alpha, beta, importance):
385385

386386
if not actions: return self.evaluate(), None
387387

388-
bestScore, bestAction = self.evaluate(), None
388+
bestScore, bestAction = float('inf'), None
389389
for action in actions:
390390
beforeMoveBoard = copy.deepcopy(self.GameBoard.board)
391391
self.addNewNum(action) # perform computer's action

0 commit comments

Comments
 (0)