Build an app using the pre-class deck functions such that when the user clicks Submit, draw a single card from a shuffled deck and show it to them.
Input:
Output:
Implement the High Card game from 9.1: Objects with 1 difference: the winner is the person with the lowest card.
Input:
Output:
Alter the Low Card game such that if any player draws a Queen, they win.
Input:
Output:
The player can input how many cards they want. The lowest of the player's cards is compared against the computer's 1 card. Show the player all the cards that they drew. Rules from above exercises continue to apply.
Input:
Output:
Implement a nice-looking output for Low Card. Use a helper function to display each card nicely with emoji (♠️, ♥️, etc.). Try to avoid repeating code if possible.
Input:
Output:
Update our latest Low Card implementation with the following twist. At the beginning of the game, pick (but do not draw) a random card in the deck to be the Wild Card. If either player draws the Wild Card, that player automatically wins.
Input:
Output:
Same rules as Low Card with Wild Card, except at the beginning of the game the player names a single card as input to be the Wild Card. The Wild Card can be identified with a card name and suit.
Input:
Output:
Allow the player to wager points on each round. Add a new mode for the beginning of each round where the player selects the number of points to wager. They win the wagered points if they win, and lose the points if they lose or draw. The player begins with 100 points. After each round, output the player's remaining points.
Input:
Output:
2 human players play against each other. The computer draws 3 cards for each player at the start of the game. The players take turns playing 1 card from their hand at a time. For each card played per player, the lowest card wins. The player that wins the best of 3 wins overall. The grey box will tell the players to switch so they don't see each other's cards.
Input:
Output:
Update the previous game logic such that if any player gets a pair in their hand, they win.
Input:
Output: