79164778

Date: 2024-11-07 01:47:57
Score: 1
Natty:
Report link

In Guess the Card, you’re given a deck of cards and asked to guess the color of the first card (red or black). If you guess correctly, you then need to guess whether the next card is higher or lower than the previous card. If you guess correctly, you then need to guess what the suit of the card is (spades ♠ /hearts ♡ /diamonds ♢/clubs ♣). If you guess correctly, you win! If at any point you guess incorrectly, the game resets and you’ll be asked to guess the color of the card.

Cards in this game will only be from 2 to 10.

Your solution will require the use of random numbers. The code used to generate random numbers has been provided to you.

Use random.randint(2,10)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aashinya Vunnam