Catalog npm
PACKAGE EXPLORERView in registry

8-sliding-puzzle

npm

This is a npm playing 8 sliding puzzle.

8-sliding-puzzle8puzzlepuzzle
Versions collected4
Direct dependencies6From release 1.0.3
Last observed20 Oct, 21:15 UTC

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.

Versions 4

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.3Registry latest21 Nov 20216
1.0.216 Nov 20211
1.0.116 Nov 20211
1.0.015 Nov 20211

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:ce89c5e0b420ae926c6dff74433ceea674cc7aec73c428c15f1e5733998d8c85