Skip to content

denizcaygoz/PushPoker

Repository files navigation

PushPoker

A card game project for a university class. The game is very similar to usual poker but has some differences.

pushpokeringame

Rules

  • The object of the game is to have the best hand score among the other players.
    The combination of each player's 3 open and 2 hidden cards determines the value of each player's hand.
  • The game is played between 2-4 players.
  • The number of rounds can be set from 2 to 7.
  • Each player has 2 hidden and 3 open cards, but unlike hidden cards, open cards can be seen by other players.
  • There is 1 draw stack, 1 discard stack, and 3 cards in the middle.
  • When it is the player's turn to move, the player must first perform the "Push Left" or "Push Right" action.
  • Push Left discards the most-left card on the mid, shifts the other two cards to the left and places a new card from draw stack to the right most position on the mid.
  • Push Right discards the most-right card on the mid, shifts the other two cards to the right and places a new card from draw stack to the left most position on the mid.
  • After the push action is performed, the player may perform one of the following actions: swap one, swap all, end turn.
    After performing any of these actions, the player ends his turn.
  • To swap one, player must select one of his cards and one of the cards on the middle to swap.
  • To swap all, player click "Swap All" button and swaps all of his 3 open cards with 3 cards in the middle.
  • To end a turn, player clicks "End Turn" button and ends his turn. The other player's turn begins.
  • When all players have completed their turn, a round is over. When all rounds are complete,
    the game ends and players are ranked according to their Hand Value Score
  • The hand value score is calculated using standard poker rules.

Use Case Diagramm

push poker use case diagramm

Class Diagramm

11 22 33

GUI

  • For the GUI bgw framework is used in the project. https://github.com/tudo-aqua/bgw.
  • The game is designed to play one a single monitor. When the current player finishes his turn, the other player comes in front of the monitor and clicks Start Turn.

hastheturn

Plans To Optimize The GUI For The Future Releases

  • A good looking main menu and scoreboard menu.
  • A better background and buttons for the in-game scene.
  • An AI can be integrated into the game.

License

Distributed under the MIT License.

About

A card game project in Kotlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages