forvy / poker-cli

Poker Card Game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Poker Card Game CLI

Prerequisites

  • Make sure npm is available. If not, install Node.js.
  • Make sure tsc is available. If not install TypeScript: npm install -g typescript
  • Install dependencies: npm install

Running app

Docker Node.js

  • Make sure docker is available. If not, install Docker.
  • Build image: npm run build:docker
  • Run app and see usage: docker run poker-cli
  • Example: docker run poker-cli compare "TS JS QS KS AS" "KS 2H 2D JD TD"

Local Node.js

  • Build app: npm run build
  • Link build npm link poker-cli
  • Run app and see usage: poker-cli
  • Example: poker-cli compare "TS JS QS KS AS" "KS 2H 2D JD TD"

Running tests

  • No build required (tests are ran directly through ts-node).
  • Run tests: npm run test

About

Poker Card Game


Languages

Language:TypeScript 92.6%Language:JavaScript 6.9%Language:Dockerfile 0.6%