snappy-puzzle-generator

1.0.1 • Public • Published

Snappy puzzle generator

"Snappy puzzles" are games where you slide tiles around to make a complete picture.

createGame will generate a solvable board from a set of tiles and validate will return the completed picture when the correct solution is submitted.

There's also a script here for convenience that will chop a picture up into however many tiles. To use it:

  • Copy the script into your project (or wherever you want the tiles)
  • Install imagemagick (e.g. with homebrew)
  • Create the output directory e.g. mkdir boards/duck
  • Run tile.sh on your image, e.g. sh tile.sh duck.jpg boards/duck.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.11latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.11
1.0.00

Package Sidebar

Install

npm i snappy-puzzle-generator

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

17.2 kB

Total Files

5

Last publish

Collaborators

  • emmavanoss