Research portable Memory game | Исследовать портируемую игру Память
25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- class memory_Context:
- def __init__(self):
- self.hiddenItems = []
- self.mismatchedItems = []
- self.playfieldItems = {}
- self.playfieldSize = 0
- self.recentField = "none"
- self.selectedId = -1
- self.selectedItems = []
- self.victory = False
-
- def __repr__(self):
- return self.__str__()
-
- def __str__(self):
- return f"memory_Context(playfieldI/playfieldS/recentF/selectedId/selectedI: '{self.playfieldItems}'/'{self.playfieldSize}'/'{self.recentField}'/'{self.selectedId}'/'{self.selectedItems}')"
-
- def memory_createContext():
- return memory_Context()
|