Skip to content

Commit

Permalink
fix captchas - closes lichess-org#11974
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Nov 30, 2022
1 parent 94b5329 commit 88f5216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/game/src/main/Captcher.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ final private class Captcher(gameRepo: GameRepo)(using ec: scala.concurrent.Exec
rewinded <- rewind(moves)
solutions <- solve(rewinded)
moves = rewinded.situation.destinations map { case (from, dests) =>
from.key -> dests.mkString
from.key -> dests.map(_.key).mkString
}
} yield Captcha(game.id, fen(rewinded), rewinded.player.white, solutions, moves = moves)

Expand Down

0 comments on commit 88f5216

Please sign in to comment.