This is a Ruby version of Project Euler Problem 54.
The solution has been tested under Ruby v2.4.1. It should work with and ruby
version 2.x. bundler
can be used to install the development/testing
dependencies:
- rspec
- simplecov
- pry/pry-byebug
The tests can be run by invoking rspec
from the root directory of the project.
A coverage report is generated in ./coverage/index.html
.
The app can be run by invoking ./bin/play
from the root directory. An
alternative hand file (defaulting to p054_poker.text
) can be passed as a
command-line argument to play
.
If the enviroment varible DEBUG is set, the app will generate some debug
output on $stderr
when either testing or running.
Results are generated on $stdout
, in the format xx rounds, xx won