Skip to content

Commit

Permalink
Implementing utils.best_move_from_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
hrushikeshrv committed Feb 1, 2023
1 parent 6d27896 commit af30fe4
Show file tree
Hide file tree
Showing 6 changed files with 174,036 additions and 893,435 deletions.
4 changes: 2 additions & 2 deletions chessengine/bitboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,12 +972,12 @@ def play(self, search_depth: int = 4) -> None:
side_to_move = "white"
in_game_tree = parser is not None
current_node = parser.root_node if in_game_tree else None
lines_printed = 20
lines_printed = 11
last_move = ""
while True:
clear_lines(lines_printed)
print(self)
lines_printed = 20
lines_printed = 11
if side_to_move == self.side:
if in_game_tree:
move, node = random.choice(list(current_node.children.items()))
Expand Down
Loading

0 comments on commit af30fe4

Please sign in to comment.