Skip to content

v1.3

Latest
Compare
Choose a tag to compare
@thewizardplusplus thewizardplusplus released this 20 Sep 16:19
· 12 commits to master since this release

Support iteration over cell classification, provide access to count of set cells in the primary field and return of a success flag for moving and unioning the movable field part.

Change Log

  • models:
    • cell classification:
      • supporting of iteration via the pairs() function;
  • game business logic:
    • providing access:
      • to count of set cells in the primary field;
    • operations with the movable field part:
      • moving:
        • returning of an operation success flag;
      • unioning with the primary field:
        • returning of an operation success flag.

Features

  • models:
    • field settings:
      • storing:
        • size;
        • initial offset;
        • filling;
        • minimal count;
        • maximal count;
      • supporting of default values for some settings;
    • game settings:
      • storing:
        • primary field settings;
        • movable field part settings;
    • cell classification:
      • static possibilities:
        • list of all known cell kinds;
        • checking if a cell kind is known;
      • storing:
        • old cells (those that are presented in the primary field, but not presented in the movable field part);
        • new cells (those that are presented in the movable field part, but not presented in the primary field);
        • intersection between the primary field and the movable field part;
      • supporting of iteration via the pairs() function;
  • creating a field by its settings:
    • random filling of the generated field;
  • game business logic:
    • providing access:
      • to game settings;
      • to count of set cells in the primary field;
      • to an offset of the movable field part;
    • generating of random fields:
      • primary field;
      • movable field part;
    • operations with the movable field part:
      • moving:
        • returning of an operation success flag;
      • rotating;
      • unioning with the primary field:
        • returning of an operation success flag;
    • classifying cells (see the cell classification model for details).