codegard1 / blackjack

Nonstandard blackjack game implemented with React and Fluent UI 1
https://ciaervo-blackjack.netlify.app/
0 stars 0 forks source link

controllingPlayer(Key) is redundant with currentPlayerKey #76

Closed codegard1 closed 5 months ago

codegard1 commented 5 months ago

Currently we have two variables in gameState that have the same purpose, but which are each used in separate domains, causing confusion and duplication of effort.

One or the other should be deprecated and all instances of the one replaced with the other, such that there is always only one state variable tracking the key of the player who currently has control in the game.

codegard1 commented 5 months ago

This redundancy was resolved in #77