Skip to content

waldofe/poker-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poker-game 🃏

A simple poker game (without UI).

  • For running, just ./run
  • For testing, make sure to bundle (only rspec as dependency), then bundle exec rspec .

The game logic is separated in two main classes (that have proper documentation on top of each):

  • PokerMatch - Which compares poker hands, using PokerHand methods (and includes the poker.txt file reading logic).
  • PokerHand - Which holds core logic (comparison, ranks, etc).

Run example (comparing hands from the poker.txt file:

› ./run
---
Player 1 wins: 376
Player 2 wins: 624
Ties: 0
---

About

A simple poker game (without UI).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages