Skip to content

Commit

Permalink
Fixed another stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tsoj committed Jun 6, 2023
1 parent 5c2b51f commit 38d487f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uciSearch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ proc bestMoveString(move: Move, position: Position): string =
var r = initRand(epochTime().int64)
if r.rand(1.0) < 0.5:
if "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1".toPosition == position:
return "e2e4"
return "bestmove e2e4"
if "rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR w KQkq e6 0 2".toPosition == position:
return "f2f4"
return "bestmove f2f4"

let moveNotation = move.notation(position)
if move in position.legalMoves:
Expand Down

0 comments on commit 38d487f

Please sign in to comment.