Make game termination message more consistent (always use '•' as a

separator)
pull/9761/head
Benedikt Werner 2021-09-09 05:08:50 +02:00
parent 8ee29976f0
commit 0f77e19106
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ object widgets {
gameEndStatus(g),
g.winner.map { winner =>
frag(
", ",
" ",
winner.color.fold(trans.whiteIsVictorious(), trans.blackIsVictorious())
)
}

View File

@ -56,7 +56,7 @@ function renderResult(ctrl: AnalyseCtrl): VNode[] {
const winner = getPlayer(ctrl.data, ctrl.data.game.winner!);
return render(result, [
statusView(ctrl),
winner ? ', ' + ctrl.trans(winner.color == 'white' ? 'whiteIsVictorious' : 'blackIsVictorious') : null,
winner ? ' ' + ctrl.trans(winner.color == 'white' ? 'whiteIsVictorious' : 'blackIsVictorious') : null,
]);
} else if (ctrl.study) {
const result = findTag(ctrl.study.data.chapter.tags, 'result');