summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-I/4-Puzzle/run.sh
blob: c649493edbff365f6f093767810007726a0c201f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/bash

export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar"

CLASSES="Board Solver"

rm *.class *.zip 2>/dev/null

for kls in $CLASSES; do
    ~/algs4/bin/checkstyle ${kls}.java
    javac ${kls}.java
done
~/algs4/bin/findbugs *.class

echo "RUN..."

java Solver puzzle02.txt
java Solver puzzle3x3-unsolvable2.txt
java Solver puzzle41.txt
java Solver puzzle4x4-hard2.txt

zip 8puzzle.zip Board.java Solver.java