I want to make a cards that distribute cards for 4 players. deck is arrays of stings that have the name of the cards.
the first card (from deck)goes to the first player, the second card (from deck) to the second player, the third card to the third player... until each player has 5 cards
this is my approach:
then I have to print each hand.Code:
The code compiles well but it prints gibberish.
Please, do you know how to fix it?