Research portable Memory game | Исследовать портируемую игру Память
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

7 个月前
7 个月前
6 个月前
7 个月前
6 个月前
7 个月前
7 个月前
12345678910111213141516171819
  1. class MemoryContext:
  2. def __init__(self):
  3. self.hiddenItems = []
  4. self.mismatchedItems = []
  5. self.playfieldItems = {}
  6. self.playfieldSize = 0
  7. self.recentField = None
  8. self.selectedId = None
  9. self.selectedItems = []
  10. self.victory = False
  11. def __repr__(self):
  12. return self.__str__()
  13. def __str__(self):
  14. return f"MemoryContext(plyfieldI/playfieldS/recentF/selectedId/selectedI: '{self.playfieldItems}'/'{self.playfieldSize}'/'{self.recentField}'/'{self.selectedId}'/'{self.selectedItems}')"
  15. def memory_createEmptyContext():
  16. return MemoryContext()