A simple solitare game built with React hooks and Redux
- App
- Handles game state (win/lose conditions)
- State
- deck
- Cards in draw deck
- waste
- Cards in waste deck
- deck
- Header
- Info and controls
- Board
- Deck
- onClick => deal
- Waste
- onClick => Drag
- Tableau
- Column
- onClick => drag
- onDrop => check if valid and update card state
- Column
- Foundations
- onDrop => check if valid and update card state
- Card
- Board
- Set grid structure
- Position elements
- Cards
- Set type
- Render
- Controls
- Drag and Drop
- Implement for tableaus first
- Drag and Drop
- Game Loop
- New game
- Shuffle
- Deal
- Tableau
- Click
- If top card turn over
- If turned over
- Select for move
- Move on next click if legal move
- Double click
- Move to foundation is possible
- Click
- Deck
- Deal card
- Waste
- Select card for move
- New game
- One/multi card drag n drop is working
- Need to refactor so can drag substacks of cards
- Render cards hierarchially/nested?
- Board => Bin => Stack { Card, Stack}
- Render cards hierarchially/nested?