Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

memory_Context.py 583B

7 months ago
7 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
12345678910111213141516171819
  1. class memory_Context:
  2. def __init__(self):
  3. self.hiddenItems = []
  4. self.mismatchedItems = []
  5. self.playfieldItems = {}
  6. self.playfieldSize = 0
  7. self.recentField = "none"
  8. self.selectedId = -1
  9. self.selectedItems = []
  10. self.victory = False
  11. def __repr__(self):
  12. return self.__str__()
  13. def __str__(self):
  14. return f"memory_Context(playfieldI/playfieldS/recentF/selectedId/selectedI: '{self.playfieldItems}'/'{self.playfieldSize}'/'{self.recentField}'/'{self.selectedId}'/'{self.selectedItems}')"
  15. def memory_createContext():
  16. return memory_Context()