While teaching myself Java I needed to write some code to fully grasp the language. This is the project, a Texas Hold'em game written in Java. I believe I wrote this around 2009-2010 time frame and it's fairly messy. Comments and documentation are not done in the preferred Java format, and Im sure there are plenty of opportunities to tidy the code up.
What works:
- Asks the user for the number of players
- Create a deck of cards
- Shuffle
- Cut the deck
- Deal players hole cards
- Burns a card
- Deals flop
- Burns a card
- Deals turn
- Burns a card
- Deals river
- Prints the deck to console to show random deck was used
- Prints the 'board'
- Prints burn cards
- Printers players cards
- Evaluates the value of each players hand (Royal flush, full house, etc...)
I never finished the game, but it served it's purpose in helping me understand and use Java.