Skip to content

Commit

Permalink
Fixed forward search initial score value
Browse files Browse the repository at this point in the history
  • Loading branch information
hrushikeshrv committed Jan 27, 2023
1 parent f681fc7 commit 4f5c36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chessengine/bitboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def search_forward(self, depth: int = 4) -> tuple[int, tuple[int, int]]:
element is the best found move as a 2 tuple containing the start position and the end position
"""
maximize = self.side == "white"
best_score = -1000 if maximize else 1000
best_score = -100000 if maximize else 100000

moves = self.get_moves(self.side)
best_move = moves[0]
Expand Down

0 comments on commit 4f5c36e

Please sign in to comment.