🚀 Basics Day 7: Pre-Class Exercises 🚀

Pre-Class In-Class

Follow Along (Objects)

Follow along and implement the High Card code in the Objects module to get a working High Card game.


Input:


Output:

Highest of 2 Cards (Objects)

Change the High Card program so that the player and computer each draw 2 cards instead of 1. The player with the highest of any of the cards wins.


Input:


Output:

Follow Along (Creating Objects with Loops)

Follow along the examples in the Creating Objects with Loops module, and then try implementing a card deck generation function from scratch. What might you do differently?


Input:


Output: