First team activity (team 7)
Names: Charlie Mitts mit18012@byui.edu, James Chan cha20009@byui.edu, Spencer Kingsbury kin20013@byui.edu, Samuel Casellas cas18010@byui.edu
Date: Jan 27th, 2022
There are two classes for this program:
- Director
- Dealer
The following responsibilities, behaviors, and statuses are as follows:
- Director:
-
Responsibilities - Run the game by verifying the conditions of the game are always true before each turn. Keeps track of the players cards and score. Asks the user two questions: if they want another turn and what their guess is for the card (whether higher or lower).
-
Behaviors: a. Initiate the game (main): start_game() b. Display the card: print_initials() c. Ask the player for higher or lower: guess_card() d. Add or subtract points: score_updates() e. Display the next card: display_new_card() f. Display and test user's score: do_outputs() g. Ask the player to play again: done()
-
Status: a. Dealer - self.dealer (class) a. Player's guess - self.guess (str) b. Current card - self.current_card (int) c. Next card - self.next_card (int) d. Playing? - self.is_playing (bool) e. Player's points - dealer.score (int)
- Dealer:
-
Responsibilities - Deals a card to represent a number between 1 and 13.
-
Behavior's: a. Retrieve the new card - return_new_card()
-
Status: a. Lower range for pulling cards - self.lower_range (int) b. Upper range for pulling cards - self.upper_range (int)
- Python compiler (after 3.7 preferred)
- Your preferred IDE