Catalog npm
Back to packageRELEASE DETAILS

1.0.1

npm

8-sliding-puzzle

This is a npm playing 8 sliding puzzle.

8-sliding-puzzle8puzzlepuzzle
Published16 Nov 2021
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

8-sliding-puzzle

A simple puzzle of 8 square tiles. Can you assemble within 50 moves?

install

$ npm install -g 8-sliding-puzzle

rule

  • This puzzle is a sliding puzzle having 8 square tiles numbered 1–8 in a frame that is 3 tiles high and 3 tiles wide, leaving one unoccupied tile position.
  • Tiles in the same row or column of the open position can be moved by sliding them horizontally or vertically, respectively.
  • You can move it 50 times in one puzzle.
  • The goal of the puzzle is to place the tiles in numerical order.
  • And at the end, be sure to put the blank tile in the lower right corner.

usage

$ 8-sliding-puzzle

Select a number and press enter.

Let's complete this puzzle within 50 moves.

  ---+---+---
   3   1   2
  ---+---+---
   7   4   5
  ---+---+---
   8   6
  ---+---+---


? [Select a number you want to move:] 1/50 …
❯ 5
  6

A solved 8-sliding-puzzle

  ---+---+---
   1   2   3
  ---+---+---
   4   5   6
  ---+---+---
   7   8
  ---+---+---

LICENSE

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
enquirer
Environment
{
  "local_name": "enquirer",
  "alias": false,
  "peer_metadata": null
}
^2.3.6runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-3qshV03PTsdY5c5H/OETbCYKrZDToejo/Zj5ATaZ8dq5/4X3brnPP5hVe0m8G8clLt22XuAgSt7yS6C745RglQ==",
  "shasum": "ecdfdc9baaf8200634b2e5b14ffb89357a763d21",
  "tarball": "https://registry.npmjs.org/8-sliding-puzzle/-/8-sliding-puzzle-1.0.1.tgz",
  "fileCount": 4,
  "unpackedSize": 5461,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhkwUzCRA9TVsSAnZWagAARugP/A/FaRSrlI17+rUceOLz\nh+lAZEZWxzY1jCzoed95b1YAsQRH5+98A6UQupxYd/xh47VlxukkIsPC/gh9\nVHB18+cVOIpeKSdclbgOGPpa1Mrl3OF7aILtLfy4seHxSd+A/JYVqG+CAtNO\nXWCG1Hi7QI975gpzrECqksEM9g3/EAwzszxSDnV4GQeepssgJovZ3fRBWHlw\nKai7LzSq4WEQK7ianQLJxyK8Utq5b6VxbdCDH14kL/ogUflTvlGMb47I9bAp\naDhC//IbNYe1w1/vj28m3CWQlcXP8wkegeaEU9zNdIXO/Hzb0+s0TyIDVZeD\nvSrb3xrlMZYson8MnMm08vsk/8g/X7CeEqE8va7gPx7VR84yiE6k+O86tnZh\nkaB6oI/UXMO7opjRlvS1qW2Wzq6O/+zOHrvltseSqD7TwMVnpYKVXF03juPg\n9ES5mLDSjPWptuCvXfPLdPkD0lIuKvfgb8rc/XG6RZl2miydJZGHm2aQiLGt\n2XKM8RS7+EOV7nMPsTxyD+Gxy8S1Rd3eNnWll1iVDBRzzUInhTQ3j2j9MZh8\n5ODxAD1pHEWnGEyMrek7pOU83UnVee4V3lQADBbqF4Ewh73f6MdiGFketvu4\nq4OQ9zkadHz+FUfmxYBxS1P1t4J58YCgIGgomW7+YWQdItqDYZyhpkS+y+L2\n1qMH\r\n=BJEy\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIChdfDo74LDTkHnQkAovbL36gmJjOV66xODC8P/qqlfCAiAa2P7mS9oh2WqzCHhd3ZLoegNXI0xnHJ256wu+YXs1Gw=="
    }
  ]
}

Repository

PENDING
paru871/8-sliding-puzzle

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:15 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:7b00843a797b2677bca2f6853601ebe4d0920a893553e2f01e5fa01d14cd6fa6

Other collected versions

1.0.321 Nov1.0.216 Nov1.0.015 NovView all collected versions →