Skip to content

Instantly share code, notes, and snippets.

@swalke16
Last active March 8, 2016 20:13
Show Gist options
  • Save swalke16/0e8c8823ad4c7c9af334 to your computer and use it in GitHub Desktop.
Save swalke16/0e8c8823ad4c7c9af334 to your computer and use it in GitHub Desktop.
Coding Assignment

##Assignment We would like you to create an application that plays the game farkle against a human competitor, and we’d like you to implement it in ruby.

####Guidelines:

  1. Use any resources (books, videos, web sites, etc...) that you need to create your solution. This is a test about how well and fast you can learn.
  2. Use the standard rules for farkle from the wikipedia page.
  3. You don't need to make the interface look pretty. A terminal based interface that shows the state of the game and allows the human to play is fine.
  4. Use git / github as source control and to share the project with us. Remember to try and take small steps, commit frequently, and use meaningful commit messages.
  5. Don't attempt any bonus item(s) (except perhaps unit tests) until you have a working simple solution.

####Bonus

  1. Surprise us! Bring your own personality to the project somehow by doing something we didn't expect.
  2. Use unit tests to validate that your solution works.
  3. See if you can use your logic to build a web (Ruby on Rails) interface for the game.

Helpful Resources

If you do a search, you can find others who have written farkle / greed games in ruby. Please don’t use these solutions. We want to see how well you can pick up a new language and environment.

Share the code with us when you are happy with it.

Have fun and let us know if you have questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment