Merge Python Branch into Main #1

Merged
hagi merged 45 commits from python into main 2022-12-30 19:15:27 +00:00
4 changed files with 5 additions and 4 deletions
Showing only changes of commit cda48dca80 - Show all commits

0
config-example.yaml Normal file
View file

View file

@ -66,15 +66,16 @@ class BlunderEvaluator:
self.wdls.append(self.current_wdl)
print(self.current_wdl)
print(self.current_evaluation)
print(self.get_board())
if self.move_was_blunder():
# If the played move was a blunder play a random sound from the blunder
# path
self.play_sound("blunder")
print("Blunder!")
if self.white_to_move:
self.white_to_move = False
elif not self.white_to_move:
self.white_to_move = True
if self.white_to_move:
self.white_to_move = False
elif not self.white_to_move:
self.white_to_move = True
else:
print("Invalid move")
self.play_sound("illegal")

View file

View file