Research portable Memory game | Исследовать портируемую игру Память
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

20 lines
420B

  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. #endif // memory_Context_HEADER