nightsky30 / koikoi

Koi Koi Hanafuda
GNU General Public License v2.0
7 stars 1 forks source link

Fix issue with card months not always matching #22

Closed nightsky30 closed 4 years ago

nightsky30 commented 4 years ago

Fix issue with card months not always matching despite the cads actually matching and being enabled in either the game hand and player hand or the game hand and deck.

nightsky30 commented 4 years ago

Fixed with commit e09ea8b0224ab1ddb9e244a9dfa1a4f5da1b7caa

nightsky30 commented 4 years ago

Still a small issue somewhere with a full gameboard and perhaps the last card in the game hand not matching

nightsky30 commented 4 years ago

It appears in selectFromGameHand() when the button sender is trying to be determined that the last char from the string of the object name is being converted to a digital value to obtain the card number. But some cards have double digits, so only the last digit is being saved...

Use something like regex instead to pattern match??

nightsky30 commented 4 years ago

Fixed with commit b2eec6fbfbba27120cd231e0a9a984d7595f17b5

nightsky30 commented 4 years ago

Fixed another issue with commit 66fa82f17ded88eda05fad868b9860defd42832f