# DEBUG basic print_board(chessboard) print_board(marks_grid) myScore, oppoScore = update_score(chessboard, marks_grid) myPiece, oppoPiece = count_pieces(chessboard) print_score(myScore, oppoScore, myPiece, oppoPiece) # DEBUG # TODO: loop like while there is still choice to move for both ppl # two condition to end game: 1. full board 2. both cant move # use the same check available moves turn = 1 # turn 1 or -1 who is going to move 0 = end both # user moving the piece user_move(chessboard) print_board(chessboard) # AI turn or -1 turn turn = -1 spinner = Spinner('Thinking ') spinner.check_tty = False for i in range(20): time.sleep(0.1) spinner.next() spinner.finish() time.sleep(0.3) print() AI = AI(chessboard, marks_grid) AI.ez_AI_move(chessboard) print_board(chessboard)