Mind map
Card Class

Map content
Card Class
The purpose of this class is to determine the behavior and properties of every individual card and then show the card on screen
- __init__() __str__() __eq__() equalPos draw
- __eq__(): Takes two cards and checks if they have the same type (if they are a match)
- __init__(): Takes each card and gives it a row placement, column placement and type as given in the main function. Also checks to make sure that the card is in play (hasn't been solved yet)
- __str__(): Returns the properties of the card (its row, column, type and if it's still in the game)
- equalPos(): Takes two cards and compares their row and column on screen (so when the game doesn't compare the same card twice)
- draw(): As long as the card is still in play, draws the card face down in it's position. If it's out of the game, it shows the upside of the card and what it represents
- __init__() __str__() __eq__() equalPos draw
Images and files in the map
Information
- Description
- Mind Map on Card Class, created by dez nutz on 01/10/2018.
- Created by
- dez nutz
- Views
- 0
- Rating