To set up your environment locally, make sure to run rake db:seed to set up the game statuses.
‘c’ = Club
‘d’ = Diamond
‘h’ = Heart
‘s’ = Spade
‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’ = Same as face value.
‘T’ = 10
‘J’ = Jack
‘Q’ = Queen
‘K’ = King
‘A’ = Ace
A straight from a ten to an ace with all five cards of the same suit. In poker all suits are ranked equally.
Ah, Kh, Qh, Jh, Th
Any straight with all five cards of the same suit.
9c, 8c, 7c, 6c, 5c
Any four cards of the same rank. If two players share the same Four of a Kind, the bigger fifth card (known as the kicker) decides who wins the pot.
Ah, As, Ad, Ac, Kh
Any three cards of the same rank together with any two cards of the same rank. Our example shows “Aces full of Kings” and it is a bigger full house than “Kings full of Aces.”
Ah, Ac, Ad, Kh, Kc
Any five cards of the same suit (not consecutive). The highest card of the five determines the rank of the flush. Our example shows an Ace-high flush, which is the highest possible.
As, Ts, 7s, 6s, 2s
Any five consecutive cards of different suits. Aces can count as either a high or a low card. Our example shows a five-high straight, which is the lowest possible straight.
5c, 4d, 3s, 2h, Ah
Any three cards of the same rank. Our example shows three-of-a-kind Aces, with a King and a Queen as side cards - the best possible three of a kind.
Ah, As, Ad, Ks, Qc
Any two cards of the same rank together with another two cards of the same rank. Our example shows the best possible two-pair, Aces and Kings. The highest pair of the two determines the rank of the two-pair.
Ah, As, Kc, Kh, Qs
Any two cards of the same rank. Our example shows the best possible one-pair hand.
Ah, As, Kh, Qs, Jd
Any hand not in the above-mentioned hands. Our example shows the best possible high-card hand.
Ah, Ks, Qd, Jc, 9s
-
Players ante up (place a small bet in the pot).
-
Starting with the player to the dealer’s left, the dealer deals each player five cards, face down.
-
Everyone picks up their cards from the table and checks out what they have got.
-
There is a round of betting, starting with the player to the dealer’s left.
-
When the betting is done, those who are still in the hand get to trade in one, two, or three cards from their hand for new ones.
-
Note: You do not have to trade any cards - if you have already got good hand, you will want to “stand pat” and keep the cards you were first dealt.
-
-
After everyone receives their new cards, there is another round of betting, starting to the dealer’s left.
-
After the betting is completed, players show their hands and the best hand wins the pot.
-
Only 1 student can register per team. Teams must have 2 people.
-
Once registration is declared to be open, you must register at enovapoker.herokuapp.com/registration with your name and game_id.
1. The name can be any creative username or actual name. 2. Your game_id MUST be an actual id number that you have on your person. This game_id will prove that the winner is you should you place in the top 3. 3. Your player key is returned to you upon being registered. This player key must be saved and kept hidden from other teams.
-
In order to properly send your requests, you must include the player key in your requests. We will give everyone about 15 minutes to make sure they can start making get requests before the tournament is started.
-
You have 5 seconds to respond back to the server with your action once the server has declared it is your turn. If you do not respond, the server will set your action as a fold and you will wait until the next round to begin play.
-
You must make the correct move otherwise you will be forced to fold your hand.
1. Ex. If you bet 200 when you only have 150 chips, you will fold. 2. Ex. If you call when the minimum bet and your bet are the same, that is the wrong response because a check is expected. 3. Exception: If you bet 200 when you have 300 chips but the smallest stack is 150, you will be cut down to bet 150 and allowed to stay in the game.
There will be 2 requests that you need to make to the server.
json { "name" : "Joe", "game_id" : 43123123, "player_key" : 031siodfj23290u32 }
json { "current_player" : "Sally", "replacement" : false, "hand" : ["Ac", "3d", "8c", "Ts", "Ah"], "bet" : 40, "stack" : 400, "pot" : 140, "min_bet" : 50, "max_bet" : 360, "max_raise" : 160, "betting_summary" : [ "Sally bets 50", "John calls 50" ], "replacement_summary" : [ "Sally replaces 3 cards", "John replaces 2 cards" ], "round_summary" : [ "Sally won 300 chips with ["2c", "2d", "2h", "3h", "3c"] for Hand#14", "John won 200 chips with ["5c", "3d", "8h", "9d", "Ac"] for Hand#16 ], "play" : true, "waiting" :false, "game_over" : false "winning_summary" : [ "1. Sally", "2. John", "3. Joe" ], "message" : "Game is about to Start" }
"play" : true signals that it is your turn; "replacement" : true signals that you should be making a post request to replace your cards "bet" and "min_bet" : if these two are different, your actions are limited to call, raise, or fold if these two are the same value, your actions are limited to check, bet, or fold "game_over" : true signals that the tournament is over and that the final summary is available "waiting" : true signals that your table is waiting for all other tables to be ready to reshuffle the seats
json { "name" : "John", "game_id" : 1203098123, "player_key" : "108jj0329fj30982ds", "player_action" : "bet", "parameters" : "45" }
Note: When you are determining which cards to replace, set parameters to be “123” to replace your first, second, and third card.
No response given.
In order to make sure that you are sending the correct information and receivng the correct information, there are several requests you can make.
json { "name" : "Joe", "game_id" : 43123123, "player_key" : 031siodfj23290u32 }
json { "current_player" : "Joe", "replacement" : false, "hand" : ["5c", "8d", "3d", "As", "Kh"], "bet" : 100, "stack" : 400, "pot" : 140, "min_bet" : 50, "max_bet" : 360, "max_raise" : 160, "betting_summary" : [ "Sally bets 50", "John calls 50" ], "replacement_summary" : [ "Sally replaces 3 cards", "John replaces 2 cards" ], "round_summary" : [ "John won 200 chips with ["5c", "3d", "8h", "9d", "Ac"] for Hand#16 ], "play" : true, "waiting" :false, "game_over" : false, "message" : "Game is about to Start" }
json { "name" : "Joe", "game_id" : 43123123, "player_key" : 031siodfj23290u32, "player_action" : "replce", "parameters" : "125" }
json { [ "---Received---", "Name: Joe", "ID: 43123123", "Player key: 031siodfj23290u32", "Action: replce", "Parameters: 125", " ", "Invalid Action: replce" ] }
There will be 3 winners - First, Second, and Third place.