fix analysis variation generation
This commit is contained in:
parent
5db6b49fa1
commit
89bba41886
|
@ -131,7 +131,7 @@ private[api] final class RoundApi(
|
|||
case (games, error) =>
|
||||
error foreach logChessError(gameId)
|
||||
val lastPly = games.lastOption.map(_.turns)
|
||||
games.map { g =>
|
||||
games.drop(1).map { g =>
|
||||
val isEnd = lastPly.exists(g.turns ==) && g.situation.end
|
||||
Step(
|
||||
ply = g.turns,
|
||||
|
|
Loading…
Reference in a new issue