Skip to content

Instantly share code, notes, and snippets.

@mallman
Created March 29, 2012 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mallman/2232599 to your computer and use it in GitHub Desktop.
Save mallman/2232599 to your computer and use it in GitHub Desktop.
LA Coding Dojo March 28, 2012
LA Coding Dojo, March 28, 2012
-- A Game of Blackjack
Your challenge tonight is to build a blackjack player to play the dealer through
a RESTful web interface. The web service is hosted at http://dojo.v.wc1.atti.com/.
Here is the interface:
Show the "leaderboard".
GET /players
Create a player with the given nickname.
POST /players?nick=[nick]
Get the player with the given nick
GET /players/:nick
Show the blackjack tables
GET /tables
Sit at a table (opposite a dealer).
POST /tables?nick=[nick]
Get the table with the given table id
GET /tables/:tableId
Draw a card
PUT /tables/:tableId/hit
End your turn
PUT /tables/:tableId/hold
Start a game with the given bet
PUT /tables/:tableId/startGame?bet=[bet]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment