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.
|
- #include <map>
- #include <string>
- #include <vector>
-
- #ifndef memory_Context_HEADER
- #define memory_Context_HEADER
-
- struct memory_Context {
- std::vector<int> hiddenItems;
- std::vector<int> mismatchedItems;
- std::map<int, int> playfieldItems;
- int playfieldSize = 0;
- std::string recentField = "none";
- int selectedId = -1;
- std::vector<int> selectedItems;
- bool victory = false;
- };
-
- memory_Context memory_createContext();
-
- #endif // memory_Context_HEADER
|