Finding best move...
Traceback (most recent call last):
File "/Users/kasiaduszynska/Desktop/Szachy/src/run.py", line 4, in
main.mainloop()
File "/Users/kasiaduszynska/Desktop/Szachy/src/main.py", line 221, in mainloop
move = ai.eval(board)
File "/Users/kasiaduszynska/Desktop/Szachy/src/ai.py", line 130, in eval
eval, move = self.minimax(main_board, self.depth, False, -math.inf, math.inf)
File "/Users/kasiaduszynska/Desktop/Szachy/src/ai.py", line 112, in minimax
if not best_move:
UnboundLocalError: local variable 'best_move' referenced before assignment
(base) kasiaduszynska@air-kasia Szachy %
Finding best move... Traceback (most recent call last): File "/Users/kasiaduszynska/Desktop/Szachy/src/run.py", line 4, in
main.mainloop()
File "/Users/kasiaduszynska/Desktop/Szachy/src/main.py", line 221, in mainloop
move = ai.eval(board)
File "/Users/kasiaduszynska/Desktop/Szachy/src/ai.py", line 130, in eval
eval, move = self.minimax(main_board, self.depth, False, -math.inf, math.inf)
File "/Users/kasiaduszynska/Desktop/Szachy/src/ai.py", line 112, in minimax
if not best_move:
UnboundLocalError: local variable 'best_move' referenced before assignment
(base) kasiaduszynska@air-kasia Szachy %