From ad472c7d52497d850226176e8d2098f7835bde22 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Tue, 5 Nov 2024 12:08:51 +0100 Subject: [PATCH] in study conceal mode, always set the orientation based on the first move for FEN and PGN imports alike --- modules/study/src/main/ChapterMaker.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/study/src/main/ChapterMaker.scala b/modules/study/src/main/ChapterMaker.scala index f36cf27ae2122..7e142c09b328b 100644 --- a/modules/study/src/main/ChapterMaker.scala +++ b/modules/study/src/main/ChapterMaker.scala @@ -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