Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moroshko/sliding-puzzle
Sliding puzzle built in Elm
https://github.com/moroshko/sliding-puzzle
Last synced: about 1 month ago
JSON representation
Sliding puzzle built in Elm
- Host: GitHub
- URL: https://github.com/moroshko/sliding-puzzle
- Owner: moroshko
- Created: 2015-10-13T09:22:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-15T12:09:28.000Z (about 9 years ago)
- Last Synced: 2024-08-03T11:01:36.488Z (4 months ago)
- Language: JavaScript
- Homepage: http://bit.ly/playthisgamenow
- Size: 324 KB
- Stars: 52
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-BigData - Sliding Puzzle - Configurable sliding puzzle game written in Elm. (Examples)
README
# 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
```shell
$ elm package install
$ ./build.sh
$ elm reactor
```Then, open `http://0.0.0.0:8000/index.html`
## License
[MIT](http://moroshko.mit-license.org)