codegard1 / blackjack

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

V2 patch2 #74

Closed codegard1 closed 3 months ago

codegard1 commented 3 months ago

Remove App Context and replace it with Deck Context, Game Context, and Setting Context. This roughly mimics the way the app way structured when we were using Redux, but now we are using reducers instead. Gameplay does not work, while some confusion persists about where and how to manage players and deck states. Currently deckReducer reduplicates the functionality of the PlayingCardDeck class, and it's unclear whether we should merge them together, use one over the other, or whether to collapse DeckContext into GameContext.