Mapa mental
Card Class

Conteúdo do mapa
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
Imagens e arquivos do mapa
Informações
- Descrição
- Mapa Mental sobre Card Class, criado por dez nutz em 01-10-2018.
- Criado por
- dez nutz
- Visualizações
- 0
- Avaliação