This is the repository from my course on how to build a fully functional Texas Hold 'Em game in Node.js. To run a simulated game, just run the following command:
node game.js
The game creates 4 players (John, Paul, George, and Ringo) and then deals them as you would expect in a round of Texas Hold 'Em. Feel free to fork this repository and extend in any way you see fit. If you make any improvements I want to hear about them, so contact me via twitter @robbymillsap.
# output
After the deal, John is winning with a high card
After the flop, George is winning with a pair
After the turn, Paul is winning with a pair
After the river, Ringo is winning with a two pair
The step-by-step tutorial on how to build this poker game can be found on my website blog.iamsap.com