aboutsummaryrefslogtreecommitdiff
path: root/perft.bash
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-08-10 15:34:18 +0200
committerAdam <adammegarules1@gmail.com>2026-08-10 15:34:18 +0200
commitf246a4ab1f855ab53801c27ebd73d5eb6bd092db (patch)
tree152a4a4d6a57f6bfb32be0bce8d859a162eb2034 /perft.bash
parent17fcc2cba9bf5fa6b52ce4eef7f96ce390c6a662 (diff)
improving script
Diffstat (limited to 'perft.bash')
-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=(