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.h 460B

123456789101112131415161718192021
  1. #include <map>
  2. #include <string>
  3. #include <vector>
  4. #ifndef memory_Context_HEADER
  5. #define memory_Context_HEADER
  6. struct memory_Context {
  7. std::vector<int> hiddenItems;
  8. std::vector<int> mismatchedItems;
  9. std::map<int, int> playfieldItems;
  10. int playfieldSize = 0;
  11. std::string recentField = "none";
  12. int selectedId = -1;
  13. std::vector<int> selectedItems;
  14. bool victory = false;
  15. };
  16. memory_Context memory_createContext();
  17. #endif // memory_Context_HEADER