Catalog npm
Back to packageRELEASE DETAILS

1.0.3

npm

8-sliding-puzzle

This is a npm playing 8 sliding puzzle.

8-sliding-puzzle8puzzlepuzzle
Published21 Nov 2021
Direct dependencies6
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 6

Native requirements
6 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
enquirer
Environment
{
  "local_name": "enquirer",
  "alias": false,
  "peer_metadata": null
}
^2.3.6runtime
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^7.32.0development
eslint-config-standard
Environment
{
  "local_name": "eslint-config-standard",
  "alias": false,
  "peer_metadata": null
}
^16.0.3development
eslint-plugin-import
Environment
{
  "local_name": "eslint-plugin-import",
  "alias": false,
  "peer_metadata": null
}
^2.25.3development
eslint-plugin-node
Environment
{
  "local_name": "eslint-plugin-node",
  "alias": false,
  "peer_metadata": null
}
^11.1.0development
eslint-plugin-promise
Environment
{
  "local_name": "eslint-plugin-promise",
  "alias": false,
  "peer_metadata": null
}
^5.1.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-UgIMf5j1FYJUAlvzmgndaCuig6bIrGyDSzqgyqTnQVrD0w7waCZ5nHNME7ajXzkVczJySR3Mlv47ynOdOStoPw==",
  "shasum": "3187a07e2427fbf45143acbeb32caa091c778582",
  "tarball": "https://registry.npmjs.org/8-sliding-puzzle/-/8-sliding-puzzle-1.0.3.tgz",
  "fileCount": 4,
  "unpackedSize": 6230,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmieICRA9TVsSAnZWagAAhegQAJ/+XKrUtGvdgPE2UkNU\nVoNc5gHVKoNTjpYWISE/q7Qxnw6tk6lu/QwSatzDdqAws4tjszYo+U1wvUsn\nwXRtnYSMW09KS0uThPoEKAa5FW5blK1yB5EKl8R0Uv22QAJJjIRGGBeqQMVf\nn+Xnwwqx56rC1qiNxzNMC2f5kaA/UxtfbhAG8pvi0PDZewoErt76zdxo+IZl\nHHK7rj3V5dc1Wfj3PcaxKjS+hAr4lRo/lslZc5jVQK4pTzWrdSt14YwdUNmK\nXYsalv3YaiJZBSWrtTMxADz5ivHxbXfvAc//+QP5E3m9WIwjZPZaRs6Ac6t3\nD8A/KQmdCrOe+xyBXaTG13CPlhDwWzgQINeTVMyeDLzLsWJrkp2rsIcsP6nC\nZL/b/rRqtl9zl3FGgYD87hkBkFNMDj8y//XXA876HunaK5E6/+hZne0FwPnO\nUbZkBmBRKYuShajpcGITYxQc5YhndUqM199Pkxfe5Dx5NDDdxNm7eqb0aE1e\nxcWfAByyHixd8xFZsUP6c6QW/6n8KMgiWUBK/PgiQfE7cg98nv5vSGSAAEAj\nHuiQ8F5v5whae1q9NRcQf4VQlHuWiDx4O1txNYf/H6wLsQvQKUpJ3cgs0mUy\nYGMYtZbf/T1NNMy1MBm9sfkOXiCgwk0jGPTrdDZvuc+sLHVWIeRVm+7wSEDW\nCvPv\r\n=FXa1\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIGN5MvFTZS67Q+KCzmyK+9OvgVTkghlhQhBQuHXHwM0hAiAk1E5UTi9tSv2Q80tWFevd133X8mPQMUQX13JPi465KQ=="
    }
  ]
}

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:0f420120ef1a09a2f0e54fcb97bf24b705893c799f853ba0e537ff19e148ee06

Other collected versions

1.0.216 Nov1.0.116 Nov1.0.015 NovView all collected versions →