Challenges 2
challenge 1 - display the co-ordinates of a mouse click on the screen as a text image:
challenge 2 - the first time i click inside this rectangle, display a text image telling me i have clicked inside the rectangle:
challenge 3 - from the program you created in challenge 2, this time tell me whether i click inside OR outside the rectangle, for example:
challenge 4 - every time i click on this card, a new random card should appear:
challenge 5 - using your code from challenge 4, display the card value as a text image underneath the card image:
challenge 6 - using your code from challenge 5, display the running tally (meaning sum) of all the card values i have flipped, as a text image underneath the card image:
challenge 7 - using your code from challenge 6, display the total count of the number of cards i have flipped, as a text image underneath the card image:
challenge 8 - using your code from challenge 7, add a reset key and bind it to the keypress 'R':
challenge 9 - draw 5 cards and determine the value of the hand, and the count of each suit:
challenge 10 - calculate the highest ranking hand in the order shown:
- Royal flush
- Straight flush
- Four of a kind
- Full house
- Flush
- Straight
- Three of a kind
- Two pair
- One Pair
- High card