blob: 07756548bfc77f26f16a57e8a9f8f9de34b10ead (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
if [ "$#" != 3 ]; then
# e.g.: ./solvability 1000 40 "sol --type alpha-star --timeout 6000"
echo "Usage: <seeds> <cores> \"<solvitaire_command>\""
exit 1
fi
seeds="$1"
cores="$2"
sol_command="$3"
# Features: smart-sol
echo "Attempted Seed, Outcome, Time Taken(ms), States Searched, Unique States Searched, Backtracks, Dominance Moves, States Removed From Cache, Final States In Cache, Final Buckets In Cache, Maximum Search Depth, Final Search Depth"
parallel -j"$cores" "$sol_command" --ra {} --class ::: $(seq "$seeds") 2> /dev/null
|