Skip to content

zapalagrzegorz/poker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poker - TDD training

instructions

Rules

Each player is dealt five cards. Players bet; each player may fold, see the current bet (check), or raise.

In turn, each player can choose to discard up to three cards. They are dealt new cards from the deck to replace their old cards. Players bet again. If any players do not fold, then players reveal their hands; strongest hand wins the pot.

Design

Card
Deck
    Request a TA Code review
Hand
    The logic of calculating pair, three-of-a-kind, two-pair, etc. goes here.
    Logic of which hand beats which would go here.
Player
    Each player has a hand, plus a pot
    Player has methods to ask the user:
        Which cards they wish to discard
        Whether they wish to fold, see, or raise.
Game
    Holds the deck
    Keeps track of whose turn it is
    Keeps track of the amount in the pot.

About

TDD with RSpec

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages