Skip to content

Commit

Permalink
in study conceal mode, always set the orientation based on the first …
Browse files Browse the repository at this point in the history
…move

for FEN and PGN imports alike
  • Loading branch information
ornicar committed Nov 5, 2024
1 parent 4d69bad commit ad472c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/study/src/main/ChapterMaker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ final private class ChapterMaker(
case _ if isMe(tags.names.white) => Color.white
case _ if isMe(tags.names.black) => Color.black
// If it is a concealed chapter (puzzles from a coach/book/course), start from side which moves first
case _ if data.isConceal && !data.fen.isDefined => root.color
case _ if data.isConceal => root.color
// if an outcome is known, then it's a finished game, which we show from white perspective by convention
case _ if tags.outcome.isDefined => Color.white
// in gamebooks (interactive chapter), we guess the orientation based on the last node
Expand Down

0 comments on commit ad472c7

Please sign in to comment.