In many card games, cards are either face up or face down. Add a
new instance variable named faceup to
the Card class to track this attribute of a card. Its
default value is False. Then add a turn method to
turn the card over. This method resets
the faceup variable to its logical negation.
Note: The program should output in the following format:
Add faceup instance variable to
the Card class
Add turn method to Card class
In many card games, cards are either face up or face down. Add a new instance variable named faceup to the Card class to
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
In many card games, cards are either face up or face down. Add a new instance variable named faceup to the Card class to
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!