GoConqr has a new look! Let us know what you think.

Mind map

Card Class

dez nutz English

Card Class

Map content

Card Class

  1. 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

Images and files in the map

  • Card Class

Information

Description
Mind Map on Card Class, created by dez nutz on 01/10/2018.
Created by
dez nutz
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?