Created
March 29, 2012 02:26
-
-
Save mallman/2232599 to your computer and use it in GitHub Desktop.
LA Coding Dojo March 28, 2012
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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