0

Card Game

Hi guys, how you would write a code in python when there is a game where 2 players get 7 cards each. 7 rounds in the game and each round the value of the player's cards for that particular round are compared to see who has the highest valued card. And the player with the highest value card wins the round. I'm beginner and I'm stuck of thinking of the easiest way to do a loop? Thank you

13th Jun 2022, 10:03 PM
Vuzz
2 Answers
+ 1
I would do a 7-round loop then, in it, generate the cards for both players and compare. Doesn't seem that hard - maybe you just have to begin.
14th Jun 2022, 1:30 AM
Emerson Prado
Emerson Prado - avatar
0
Thank you very much Emerson, manage to sort it 🙂
17th Jun 2022, 10:36 PM
Vuzz