This repo holds The Letters Game for Learn21. It's coded on TypeScript with JavaScript Standard Style and it's built with Webpack.
The stack is:
- React
- Redux
- CSS Modules
- postCSS
- The Game component accepts one parameter
word
- The Word is scrambled and broken down into letters inside cards: family becomes -> [ y ] [ l ] [ m ] [ f ] [ a ] [ l ] [ i ]
- You can type letter after letter and the cards will start lining up. If you type: f, a, the cards will look like: [ f ], [ a ], ...
- Pressing Backspace undoes the last step
- Cards can also be dragged in order using mouse
- When you press Enter the correctness of each card is checked out, correctly positioned ones are highlighted in green, incorrect ones are in red
Runs a webpack-dev-server at http://localhost:8080
npm start
Builds a distribution version in the public directory
npm run build
Deploy a distribution version in the http://learn21.surge.sh domain
npm run deploy