prepare puzzle master game origin

disable-taffy
Thibault Duplessis 2021-01-15 00:12:00 +01:00
parent ff23155124
commit c7fa1f528b
6 changed files with 24 additions and 3 deletions

View File

@ -1554,7 +1554,6 @@ val `closeTeam` = new I18nKey("team:closeTeam")
val `closeTeamDescription` = new I18nKey("team:closeTeamDescription")
val `teamPassword` = new I18nKey("team:teamPassword")
val `teamPasswordDescriptionForLeader` = new I18nKey("team:teamPasswordDescriptionForLeader")
val `teamPasswordDescriptionForRequester` = new I18nKey("team:teamPasswordDescriptionForRequester")
val `incorrectTeamPassword` = new I18nKey("team:incorrectTeamPassword")
val `teamAlreadyExists` = new I18nKey("team:teamAlreadyExists")
val `nbMembers` = new I18nKey("team:nbMembers")
@ -1800,6 +1799,7 @@ val `advanced` = new I18nKey("puzzle:advanced")
val `lengths` = new I18nKey("puzzle:lengths")
val `mates` = new I18nKey("puzzle:mates")
val `goals` = new I18nKey("puzzle:goals")
val `origin` = new I18nKey("puzzle:origin")
val `specialMoves` = new I18nKey("puzzle:specialMoves")
val `didYouLikeThisPuzzle` = new I18nKey("puzzle:didYouLikeThisPuzzle")
val `voteToLoadNextOne` = new I18nKey("puzzle:voteToLoadNextOne")
@ -1889,6 +1889,10 @@ val `knightEndgame` = new I18nKey("puzzleTheme:knightEndgame")
val `knightEndgameDescription` = new I18nKey("puzzleTheme:knightEndgameDescription")
val `long` = new I18nKey("puzzleTheme:long")
val `longDescription` = new I18nKey("puzzleTheme:longDescription")
val `master` = new I18nKey("puzzleTheme:master")
val `masterDescription` = new I18nKey("puzzleTheme:masterDescription")
val `masterVsMaster` = new I18nKey("puzzleTheme:masterVsMaster")
val `masterVsMasterDescription` = new I18nKey("puzzleTheme:masterVsMasterDescription")
val `mate` = new I18nKey("puzzleTheme:mate")
val `mateDescription` = new I18nKey("puzzleTheme:mateDescription")
val `mateIn1` = new I18nKey("puzzleTheme:mateIn1")

View File

@ -76,7 +76,9 @@ object PuzzleDashboard {
PuzzleTheme.mateIn5,
PuzzleTheme.equality,
PuzzleTheme.advantage,
PuzzleTheme.crushing
PuzzleTheme.crushing,
PuzzleTheme.master,
PuzzleTheme.masterVsMaster
).map(_.key)
val relevantThemes = PuzzleTheme.all collect {

View File

@ -131,7 +131,9 @@ final private[puzzle] class PuzzleFinisher(
PuzzleTheme.knightEndgame,
PuzzleTheme.rookEndgame,
PuzzleTheme.queenEndgame,
PuzzleTheme.queenRookEndgame
PuzzleTheme.queenRookEndgame,
PuzzleTheme.master,
PuzzleTheme.masterVsMaster
).map(_.key)
private def isHinting(theme: PuzzleTheme.Key) = !nonHintingThemes(theme)

View File

@ -39,6 +39,8 @@ object PuzzleTheme {
val kingsideAttack = PuzzleTheme(Key("kingsideAttack"), i.kingsideAttack, i.kingsideAttackDescription)
val knightEndgame = PuzzleTheme(Key("knightEndgame"), i.knightEndgame, i.knightEndgameDescription)
val long = PuzzleTheme(Key("long"), i.long, i.longDescription)
val master = PuzzleTheme(Key("master"), i.master, i.masterDescription)
val masterVsMaster = PuzzleTheme(Key("masterVsMaster"), i.masterVsMaster, i.masterVsMasterDescription)
val mate = PuzzleTheme(Key("mate"), i.mate, i.mateDescription)
val mateIn1 = PuzzleTheme(Key("mateIn1"), i.mateIn1, i.mateIn1Description)
val mateIn2 = PuzzleTheme(Key("mateIn2"), i.mateIn2, i.mateIn2Description)
@ -135,6 +137,10 @@ object PuzzleTheme {
short,
long,
veryLong
),
trans.puzzle.origin -> List(
master,
masterVsMaster
)
)
@ -161,6 +167,8 @@ object PuzzleTheme {
endgame,
equality,
long,
master,
masterVsMaster,
mate,
mateIn1,
mateIn2,

View File

@ -9,6 +9,7 @@
<string name="lengths">Lengths</string>
<string name="mates">Mates</string>
<string name="goals">Goals</string>
<string name="origin">Origin</string>
<string name="specialMoves">Special moves</string>
<string name="didYouLikeThisPuzzle">Did you like this puzzle?</string>
<string name="voteToLoadNextOne">Vote to load the next one!</string>

View File

@ -49,6 +49,10 @@
<string name="knightEndgameDescription">An endgame with only knights and pawns.</string>
<string name="long">Long puzzle</string>
<string name="longDescription">Three moves to win.</string>
<string name="master">Master games</string>
<string name="masterDescription">Puzzles from games played by titled players.</string>
<string name="masterVsMaster">Master vs Master games</string>
<string name="masterVsMasterDescription">Puzzles from games between two titled players.</string>
<string name="mate">Mate</string>
<string name="mateDescription">Win the game with style.</string>
<string name="mateIn1">Mate in 1</string>