Skip to content
This repository has been archived by the owner on Nov 1, 2019. It is now read-only.
/ npuzzle Public archive

Ocaml N-puzzle game solver using the A* search algorithm

Notifications You must be signed in to change notification settings

cepalle/npuzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency

  • ocaml
  • opam
  • dune: opam install dune
pip3 install -r visu/requirements.txt

Build

in solver/

dune build solver.exe

Usage

Solver

  • -dh hamming distance
  • -dm manhattan distance
  • -de euclidean distance
  • -dc chebyshev distance
  • -grd greedy search
  • -w <int> weight

Visu

python3 visu/main.py --help

example:

python Puzzle_generator.py -s 4 | ./solver/_build/default/solver.exe -dc -w 5 | python3 visu/main.py -s 4 -i images/image.jpg

About

Ocaml N-puzzle game solver using the A* search algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published