External Exam Download Resources Web Applications Games Recycle Bin

Card Draw Challenge

Version 0
  • displays a random card to the screen
  • download: card images


Version 1
  • displays 5 random card images or values to screen
  • in case you missed the download: card images


Version 2
  • does everything version 1 does
  • same card can't appear twice


Version 3
  • does everything version 2 does
  • sorted left to right:
    • 2 ⇒ A
    • clubs → diamonds → hearts → spades


Total: 0
Version 4
  • does everything version 3 does
  • calculates card weight total:
    • 2 ⇒ 10
    • jack ⇒ king = 10
    • ace = 11


Total: 0 Ranking: yet to draw
Version 5
  • does everything version 4 does
  • calculates hand highest ranking in this order:


Total: 0 Ranking: yet to draw
Version 6
  • does everything version 5 does
  • you get one chance to discard unwanted cards


Total: 0 Ranking: yet to draw
Version 7
  • does everything version 6 does
  • re-sorts the re-drawn cards (final hand)