sliding-puzzle 0,0

Sliding puzzle built in Elm

3 years after

Sliding Puzzle

Classic 15-puzzle

More interesting challenge (Hint: this is solvable!)

Game Parameters

You can set the following game parameters via the query string:

  • width - game width. Range: [2..10]. Default: 3.
  • height - game height. Range: [2..10]. Default: 3.
  • start - start position of the game. For example: P,L,A,Y,T,H,I,S,G,A,M,E,N,W,O,. When start is set, you probably also want to set shuffle=0.
  • goal - end position of the game. For example: P,L,A,Y,T,H,I,S,G,A,M,E,N,O,W,
  • shuffle - amount of random moves to play before the game starts. Range: [0..20000]. Default: (width * height) ^ 2.
  • size - tile size in pixels. Range: [5..200]. Default: maximizes the screen space, but doesn't go above 200.

Development

$ elm package install
$ ./build.sh
$ elm reactor

Then, open http://0.0.0.0:8000/index.html

License

MIT

Related Repositories

angular-puzzle

angular-puzzle

Sliding puzzle and word search puzzle powered by AngularJS ...

IXNTilePuzzle

IXNTilePuzzle

IXNTilePuzzle, A view for making a simple square UIView for playing sliding puzz ...

SlidingPuzzle

SlidingPuzzle

How to find the optimal solution for solving a 8 or 15 sliding puzzle. ...

puzzl

puzzl

An intelligent version of the sliding-puzzle game for your terminal built in gol ...

fifteen-puzzle

fifteen-puzzle

Implementation of Sliding 15 Puzzle with a Solver ...


Top Contributors

moroshko