Skip to content

Learning react by creating a farkle game (work-in-progress, learning-in-progress)

License

Notifications You must be signed in to change notification settings

robballou/react-farkle

Repository files navigation

React Farkle Game

Build Status

Using as my tutorial for learning React. Find out more about Farkle.

Currently has:

  • Some React structure
  • Some Ava testing for scoring mechanisms
  • Some styling, but not much 😏

Install

  1. Clone it.
  2. nvm use (if you're using nvm).
  3. npm install it.
  4. npm run webpack it.
  5. Serve it (requires docker-compose): npm run up (find the game at localhost:8080)
  6. Stop serving it: npm run down

Gif it

example gameplay

Currently game includes:

  • Basic scoring rules
  • A two player game
  • Some error handling around selecting incorrect dice
  • Stateful buttons related to actions the player can take, etc.
  • An indicator for whether a player is winning currently

Still needed:

  • A means of determining the winner and ending the game when someone wins
  • Restarting the game
  • Allowing a different number of players
  • Better UI design and UX tweaks (responsive design considerations, select all die, deselect all die, show scoring options etc)

About

Learning react by creating a farkle game (work-in-progress, learning-in-progress)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published