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.

entities.py 503B

7 maanden geleden
7 maanden geleden
7 maanden geleden
12345678910111213141516
  1. class MemoryContext:
  2. def __init__(self):
  3. self.playfieldItems = {}
  4. self.playfieldSize = 0
  5. self.recentField = None
  6. self.selectedId = None
  7. self.selectedItems = []
  8. def __repr__(self):
  9. return self.__str__()
  10. def __str__(self):
  11. return f"MemoryContext(plyfieldI/playfieldS/recentF/selectedId/selectedI: '{self.playfieldItems}'/'{self.playfieldSize}'/'{self.recentField}'/'{self.selectedId}'/'{self.selectedItems}')"
  12. def memory_createEmptyContext():
  13. return MemoryContext()