log UCI moves in ai play

This commit is contained in:
Thibault Duplessis 2013-10-05 13:32:27 +02:00
parent c906713199
commit 281477974a

View file

@ -13,7 +13,7 @@ trait Ai {
fen game.variant.exotic ?? { GameRepo initialFen game.id }
pgn PgnRepo get game.id
uciMoves uciMemo.get(game, pgn) map (_ mkString " ")
moveStr move(uciMoves, fen, level)
moveStr fulogwarn(s"${game.id} $uciMoves") >> move(uciMoves, fen, level)
uciMove (UciMove(moveStr) toValid "Wrong bestmove: " + moveStr).future
result (game.toChess withPgnMoves pgn)(uciMove.orig, uciMove.dest).future
(c, m) = result