a klotski-solver written in C++ No external libraries used. Not even for UTests. text input. text, svg, animated html output.
rm -frv "/tmp/build"; mkdir -pv "/tmp/build" && cmake -B "/tmp/build" -S . && make -j --directory="/tmp/build" && echo done
mkdir build && cd build && cmake .. Build with Visual studio 2017
"/tmp/build/unit-tests" && echo done
run unit-tests.exe in debug build
"/tmp/build/solve" < "in_smallPuzzle.txt" 1> out_smallPuzzle.html "/tmp/build/solve" < "in_smallPuzzle.txt" 2> /dev/null "/tmp/build/solve" < "in_largePuzzle.txt" time "/tmp/build/solve" < "in_hardPuzzle.txt" 1> out_hardPuzzle.html 2> out_hardPuzzle.txt
solve.exe < "in_smallPuzzle.txt" 1> out_smallPuzzle.html
"/tmp/build/solve" benchmark < "in_hardPuzzle.txt" 1> /dev/null
solve is using :
- standard input as puzzle to solve
- standard output as html solution
- error output as text solution and puzzle bug