Skip to content

Masks on Masks on Masks...

Latest
Compare
Choose a tag to compare
@joshbduncan joshbduncan released this 02 May 16:15
· 125 commits to main since this release

v3.3.0

More mask fun and some cleanup. Check them out at the links below!

masks

Added

  • New pre-built mask shapes: Club, Fish, Flower, and Spade
  • Testing for built-in masks shapes based on known output
  • 'tools/build_masks_output_dict.py' tool for generating known built-in shapes output dict for us in testing

Club

            * * * * *
          * * * * * * *
        * * * * * * * * *
        * * * * * * * * *
        * * * * * * * * *
        * * * * * * * * *
    * * * * * * * * * * * * *
  * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * *
  * * * * * * * * * * * * * * *
    * * * * * * * * * * * * *
              * * *
              * * *
        * * * * * * * * *
        * * * * * * * * *

Fish

* * *               * * * * * *
    * * *       * * * * * * * * * *
      * * *   * * * * * * * * * * * *
      * * * * * * * * * * * * * * * * *
        * * * * * * * * * * * * * * * * *
        * * * * * * * * * * * * * * * * *
        * * * * * * * * * * * * * * * * *
        * * * * * * * * * * * * * * * * *
        * * * * * * * * * * * * * * * * *
      * * * * * * * * * * * * * * * * *
      * * *   * * * * * * * * * * * *
    * * *       * * * * * * * * * *
* * *               * * * * * *

Flower

              * * * * * * *
          * * * * * * * * * * *
        * * * * * * * * * * * * *
        * * * * * * * * * * * * *
    * *   * * * * * * * * * * *   * *
  * * * *   * * * * * * * * *   * * * *
  * * * * *   * * *   * * *   * * * * *
* * * * * * *   * *   * *   * * * * * * *
* * * * * * * *   *   *   * * * * * * * *
* * * * * * * * *       * * * * * * * * *
* * * * * *                   * * * * * *
* * * * * * * * *       * * * * * * * * *
* * * * * * * *   *   *   * * * * * * * *
* * * * * * *   * *   * *   * * * * * * *
  * * * * *   * * *   * * *   * * * * *
  * * * *   * * * * * * * * *   * * * *
    * *   * * * * * * * * * * *   * *
        * * * * * * * * * * * * *
        * * * * * * * * * * * * *
          * * * * * * * * * * *
              * * * * * * *

Spade

                *
              * * *
              * * * *
            * * * * *
          * * * * * * *
        * * * * * * * * *
        * * * * * * * * * *
      * * * * * * * * * * *
    * * * * * * * * * * * * *
  * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * *
  * * * * * * * * * * * * * * *
    * * * * * * * * * * * * *
              * * *
              * * *
        * * * * * * * * *
        * * * * * * * * *

Fixed

  • During mask generation, each class and subclass now refers to their own build_mask() method instead of the base class.
  • Incorrect horizontal center calculation for Spade and Club masks on even sized masks.

Changed

  • The .random_words() method default to NOT resetting the puzzle size.
  • Radius calculation for the RegularPolygon mask.
  • If the random_words() method is called on an empty WordSearch() object, an appropriate puzzle size is calculated.
  • Cleaned up variable naming a bit to make things clear
    • cli.py BUILTIN_SHAPES -> BUILTIN_MASK_SHAPES_OBJECTS
    • shapes.py MASK_SHAPES -> BUILTIN_MASK_SHAPES
  • Cleaned up calculation of built-in shape objects
  • Cleaned up imports for 'test/init.py'
  • README and wiki mention puzzle masking.

Removed

  • make_header() function no longer needed as header is created with f-strings now