#!/bin/bash
-# verify perft numbers (positions from https://chessprogramming.wikispaces.com/Perft+Results)
+# verify perft numbers (positions from www.chessprogramming.org/Perft_Results)
error()
{
set timeout 10
lassign \$argv pos depth result
spawn ./stockfish
- send "position \$pos\\n perft \$depth\\n"
- expect "Nodes searched ? \$result" {} timeout {exit 1}
+ send "position \$pos\\ngo perft \$depth\\n"
+ expect "Nodes searched? \$result" {} timeout {exit 1}
send "quit\\n"
expect eof
EOF