Demo: https://olegsuv-react-checkers.netlify.app/
- React
- Typescript
- HTML/CSS
- classNames lib
- class component
Classic checkers game on 8x8 field.
The red team named "A", playable by humans only and starting the game.
The black team named "B", playable by AI (current config) or by a human.
To disable AI, change the value: App.tsx:20
const brainLessAI = true
into false
.\
Units are forcing to attack if they can to do this, moves are disabling in this case.`
Units cannot attack backward (which is possible by some rules).
Units are not becoming "queen" if they reach the end of root.
Won message will appear if some team will run out of units.
- Unit tests
- Drag-n-drop by https://react-dnd.github.io/react-dnd/about
- Redux instead of state
- Splitting App.tsx files into components