aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xperft.bash7
1 files changed, 5 insertions, 2 deletions
diff --git a/perft.bash b/perft.bash
index 4b085fe..74e1250 100755
--- a/perft.bash
+++ b/perft.bash
@@ -5,16 +5,19 @@ testPerft() {
local depth="$2"
local expected="$3"
+ echo ""
+
result=$(./build/mono "perft" $depth "$fen")
count=$(echo $result | jq -r '.result')
if [ "$count" = "$expected" ]; then
echo "Results match"
else
- echo "Results dont match"
+ echo "RESULTS DONT MATCH"
+ echo "Depth: $depth"
+ echo "Fen: $fen"
echo "Expected: $expected"
echo "Got: $count"
fi
- echo "-------------------"
}
configs=(