MicahWW / Python-Games

2 stars 0 forks source link

Instant Win if Player Icon is Single Space #53

Closed codyswanner closed 1 year ago

codyswanner commented 1 year ago

There is currently no check on advancedGameSettings or updateBoard to prevent a player from selecting a single space (the default value for TicTacToe.BLANK_POS_ICON) and on the first move immediately winning the game because all board spaces are assigned a string with a single space by default at the beginning of the game. This issue can be fixed by disallowing selection of a single space in advancedGameSettings, or by resolving another already open issue, #45.