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.

47 lines
551B

  1. # Generate positions in cell dimensions
  2. #
  3. # Conditions:
  4. # 1. 2x2 grid
  5. # 2. 4x4 grid
  6. def gui_aux_cellPositions(
  7. size: int
  8. ) -> [[int]]:
  9. if (
  10. size == 2
  11. ):
  12. return [
  13. [14, 7],
  14. [19, 7],
  15. [14, 13],
  16. [19, 13],
  17. ]
  18. #}
  19. if (
  20. size == 4
  21. ):
  22. return [
  23. [9, 1],
  24. [14, 1],
  25. [19, 1],
  26. [24, 1],
  27. [9, 7],
  28. [14, 7],
  29. [19, 7],
  30. [24, 7],
  31. [9, 13],
  32. [14, 13],
  33. [19, 13],
  34. [24, 13],
  35. [9, 19],
  36. [14, 19],
  37. [19, 19],
  38. [24, 19],
  39. ]
  40. #}
  41. #}