To the previous article Part 1
Part 2 start The player selects and discards unnecessary cards. Dealer replenishes only the number discarded End
A slightly improved player.show to display the numbered cards. The player inputs the cards to be discarded by separating them with a half-width space. Change the card selected from the hands array of the player instance to ~~ Erase ~~ nil. The player asks the dealer to deal the erased number of cards. The dealer takes the requested number of cards from the deck and hands them to the player. End
https://github.com/paraizo2424/poker_game/tree/a5331caa1a828ff5dc6f3b37ec381900936c5a46
Go to Part 3
Recommended Posts