emilnt1 / SolitareImageRecognition

0 stars 0 forks source link

Program crashed when make a draw from drawpile #6

Closed emilnt1 closed 2 years ago

emilnt1 commented 2 years ago

Traceback dump. Traceback (most recent call last): File "c:\Users\emilb\Documents\SolitareImageRecognition\SolitareImageRecognition-1\Ui.py", line 238, in main() File "c:\Users\emilb\Documents\SolitareImageRecognition\SolitareImageRecognition-1\Ui.py", line 222, in main
instruction = nextMove(currBoard) File "c:\Users\emilb\Documents\SolitareImageRecognition\SolitareImageRecognition-1\AI\AI.py", line 38, in nextMove curr_result = move(board) File "c:\Users\emilb\Documents\SolitareImageRecognition\SolitareImageRecognition-1\AI\AI.py", line 116, in putColumn cardsLeftDeckDrawPile -= 1 UnboundLocalError: local variable 'cardsLeftDeckDrawPile' referenced before assignment

State of the game: image

image

emilnt1 commented 2 years ago

This bug is able to be replicated with the deck from "Mellem_kabale_1"