This app identifies the Texas Hold'em hands and ranks the players by hands.
You will need Node.js and npm, installed in your environement.
You can install nodejs and npm easily with apt install, just run the following commands.
$ sudo apt install nodejs
$ sudo apt install npm
$ git clone https://github.com/muhammadalics/Texas-Holdem-Hands
$ cd Texas-Holdem-Hands
$ npm install
$ node holdem.js
Enter the names and cards as follows:
$ KS AD 3H 7C TD
John 9H 7S
Sam AC KH
Becky JD QC
After entering the last line of input, hit Enter. Then, hit CTRL+D to process the input and see results.
$ npm test