emilnt1 / SolitareImageRecognition

0 stars 0 forks source link

When the wrong card is taken to foundation in the end game, the program crashes #8

Closed emilnt1 closed 2 years ago

emilnt1 commented 2 years ago

Traceback:

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 41, in nextMove if ( len(curr_result) != 0): TypeError: object of type 'NoneType' has no len()

State of the game: image

ArmandasRokas commented 2 years ago

Done. ready for test

Machnuud commented 2 years ago

Hurray it is very fixed