Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/study/src/main/ChapterMaker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ final private class ChapterMaker(
case Orientation.Fixed(color) => color
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
// 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