https://github.com/simuons/n-puzzle-clojure-dojo
n-puzzle clojure dojo
https://github.com/simuons/n-puzzle-clojure-dojo
Last synced: 5 months ago
JSON representation
n-puzzle clojure dojo
- Host: GitHub
- URL: https://github.com/simuons/n-puzzle-clojure-dojo
- Owner: simuons
- Created: 2016-06-29T18:17:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-01T12:14:46.000Z (over 6 years ago)
- Last Synced: 2025-03-15T17:13:11.048Z (10 months ago)
- Language: Clojure
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# n-puzzle
The n-puzzle is a board game for a single player. It consists of (n^2 - 1) numbered squared tiles in random order, and one blank space ("a missing tile"). The object of the puzzle is to rearrange the tiles in order by making sliding moves that use the empty space, using the fewest moves. Moves of the puzzle are made by sliding an adjacent tile into the empty space. Only tiles that are horizontally or vertically adjacent to the blank space (not diagonally adjacent) may be moved.
# Setup
* Install [Leiningen](http://leiningen.org/)
* Fork this repository
* Checkout master branch
* Run `lein test-refresh` from project root
# Solution
One of many possible can be found in [this branch](https://github.com/simuons/n-puzzle-clojure-dojo/tree/solution)