-
Clone the repo
-
run ‘bundle install’
-
run ‘bundle exec rake db:create’
-
run ‘bundle exec rake db:migrate db:seed’
-
run a rails server (bundle exec rails server)
-
Go to ‘localhost:3000’ and enjoy!
-
Use caching - blackjack instances should be stored in memcached. This is important for ensuring server response time is low when there are many concurrent users.
-
Clean up the CSS (and ensure multiple browser support). This game was only tested on Chrome.
-
Remove the public pages and add a “catch all” error page for missing routes etc.
-
Add a “with friends” mode - it would be great if you could play your friends instead of just playing the dealer. For this to work, the blackjack model would have to change to support two user_ids. Alternately, I could add a “user_matches” table that relates pairs of users to the blackjack games played.
-
Add a help page! Since my rules are a simplified set a rules, it would be great if users could see my rules. This would eliminate the learning curve (if users were to read the help section).
-
Additional blackjack elements: betting, the ability to “split” in-game.
-
Leaderboards! With a PvP mode, leaderboards are super important.
-
Add complete backend test coverage
-
All my assets were stolen from deviantArt:
-
My authentication is largely borrowed from this Railscast: