https://qqpk2pom9q.codesandbox.io/
npm run build
then open/dist/index.html
. Or,npm start
to start the dev server.
- ← Left
- → Right
- ↑ Up
- ↓ Down
- Space Pause
- Enter Restart
- Debounce
keydown
to preventdirection
from changing multiple times before next move. - Make game field responsive. e.g. Limit
TOTAL_ROWS
andTOTAL_COLS
on small screens. - Make game settings configurable
- Better UI/UX
* Dev environment: node 6.11.2
, npm 5.6.0