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.

17 line
281B

  1. #include <map>
  2. #include "Memory.h"
  3. std::map<int, int> memory_generateConstPlayfield(
  4. int n
  5. ) {
  6. std::map<int, int> idGroups;
  7. auto id = 0;
  8. for (int gid = 0; gid < n; ++gid) {
  9. idGroups[id] = gid;
  10. id += 1;
  11. idGroups[id] = gid;
  12. id += 1;
  13. }
  14. return idGroups;
  15. }