80 likes | 252 Views
Java Hold’em. By: Jordan Simon Mike Norman Charles Slack. What is Java Hold’em ?. Variant of Texas Hold’em poker made in Java! Our game boasts the 5 card River and each player has two cards themselves. Features. Bet: Player is able to place a bet based on how much money they have.
E N D
Java Hold’em By: Jordan Simon Mike Norman Charles Slack
What is Java Hold’em? • Variant of Texas Hold’em poker made in Java! • Our game boasts the 5 card River and each player has two cards themselves.
Features • Bet: Player is able to place a bet based on how much money they have. • Call: When another player has bet the next can either call or fold. If the amount bet is greater than how much that player has they would go “all in.” • Fold: Player may fold their cards and wait for the next hand. • Check: If the player is content with their cards and is awaiting the next card to be shown on the River. (This is if/when no other player has bet). • Chat: Player may communicate with each other through chat feature. • Multiplayer: Up to four players can play.
Java Hold’em GUI The GUI with four players… GO LAWLER2!
Game Setup • When player starts the game they will log in to a server (IP of the machine running server) using an alias and the server IP. • The player will then wait until at least one more player has joined. • When Java Hold’em starts each player will have two cards with $500 starting cash. Upon their turn they can bet, call, fold, or check depending on the situation. • A player wins a hand after the hand evaluator checks each person’s hand against each other.
Client / Server Client Server Takes the input in the inputThread() and is always awaiting its next command. Contains the GUI interface Some examples of commands include: GET_ID, MAKE_NEW_PLAYER, and BET_CALL. Likewise the server has a thread called ReadThread() that is always awaiting commands. Handles the communication between clients over the network. Some examples of commands include: TURN, REFRESH, and FULL