code golf

pull/9764/head
Thibault Duplessis 2021-09-09 07:44:20 +02:00
parent c2e1dbd0fd
commit 0337c40d32
1 changed files with 1 additions and 4 deletions

View File

@ -193,10 +193,7 @@ trait GameHelper { self: I18nHelper with UserHelper with AiHelper with StringHel
case (Black, None) => trans.blackTimeOut.txt() + " • " + trans.draw.txt()
}
case S.NoStart =>
game.loser match {
case Some(p) if p.color.white => trans.whiteDidntMove.txt()
case _ => trans.blackDidntMove.txt()
}
(if (game.loser.exists(_.color.white)) trans.whiteDidntMove else trans.blackDidntMove).txt()
case S.Cheat => trans.cheatDetected.txt()
case S.VariantEnd =>
game.variant match {