Skip to content

adriangabardo/casino-royale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Casino Royale

“A martini. Shaken, not stirred.” - Adrian at 2am.

Getting started

Requirements:

  • Node (v10 and above)
  • NPM (v.7.5.x and above)

Installation

For the latest build and a fresh typescript compilation, run:

npm run install:bin

In the case of typescript not being installed, a build has been pushed to the repository, but may not be the latest JS version of the code. To use that, run:

npm run install:lite

Usage

Now the CLI app will be linked to your local environment, and available for use as casinoroyale. Use casinoroyale -h for help. Here is an example usage:

casinoroyale -f docs/poker-hands.txt

This example uses the test file available in the repo's docs folder, but you can use any other file with a valid set of poker hands.

Running on Docker

If you'd rather not install the CLI to your global environment, there is a Dockerfile in the repo. To use the CLI through Docker, run these commands:

docker build -t casinoroyale .
docker run casinoroyale --f docs/poker-hands.txt

Resources

These are the articles I've read to help me build this tool.

About

Poker hand counting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published