Auto stash before revert of "Auto stash before rebase of "origin/python""

This commit is contained in:
hagi 2022-12-30 20:12:35 +01:00
parent 90d209e7a2
commit cda48dca80
4 changed files with 5 additions and 4 deletions

0
config-example.yaml Normal file
View file

View file

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

View file

View file