prepare puzzle master game origin
parent
ff23155124
commit
c7fa1f528b
|
@ -1554,7 +1554,6 @@ val `closeTeam` = new I18nKey("team:closeTeam")
|
||||||
val `closeTeamDescription` = new I18nKey("team:closeTeamDescription")
|
val `closeTeamDescription` = new I18nKey("team:closeTeamDescription")
|
||||||
val `teamPassword` = new I18nKey("team:teamPassword")
|
val `teamPassword` = new I18nKey("team:teamPassword")
|
||||||
val `teamPasswordDescriptionForLeader` = new I18nKey("team:teamPasswordDescriptionForLeader")
|
val `teamPasswordDescriptionForLeader` = new I18nKey("team:teamPasswordDescriptionForLeader")
|
||||||
val `teamPasswordDescriptionForRequester` = new I18nKey("team:teamPasswordDescriptionForRequester")
|
|
||||||
val `incorrectTeamPassword` = new I18nKey("team:incorrectTeamPassword")
|
val `incorrectTeamPassword` = new I18nKey("team:incorrectTeamPassword")
|
||||||
val `teamAlreadyExists` = new I18nKey("team:teamAlreadyExists")
|
val `teamAlreadyExists` = new I18nKey("team:teamAlreadyExists")
|
||||||
val `nbMembers` = new I18nKey("team:nbMembers")
|
val `nbMembers` = new I18nKey("team:nbMembers")
|
||||||
|
@ -1800,6 +1799,7 @@ val `advanced` = new I18nKey("puzzle:advanced")
|
||||||
val `lengths` = new I18nKey("puzzle:lengths")
|
val `lengths` = new I18nKey("puzzle:lengths")
|
||||||
val `mates` = new I18nKey("puzzle:mates")
|
val `mates` = new I18nKey("puzzle:mates")
|
||||||
val `goals` = new I18nKey("puzzle:goals")
|
val `goals` = new I18nKey("puzzle:goals")
|
||||||
|
val `origin` = new I18nKey("puzzle:origin")
|
||||||
val `specialMoves` = new I18nKey("puzzle:specialMoves")
|
val `specialMoves` = new I18nKey("puzzle:specialMoves")
|
||||||
val `didYouLikeThisPuzzle` = new I18nKey("puzzle:didYouLikeThisPuzzle")
|
val `didYouLikeThisPuzzle` = new I18nKey("puzzle:didYouLikeThisPuzzle")
|
||||||
val `voteToLoadNextOne` = new I18nKey("puzzle:voteToLoadNextOne")
|
val `voteToLoadNextOne` = new I18nKey("puzzle:voteToLoadNextOne")
|
||||||
|
@ -1889,6 +1889,10 @@ val `knightEndgame` = new I18nKey("puzzleTheme:knightEndgame")
|
||||||
val `knightEndgameDescription` = new I18nKey("puzzleTheme:knightEndgameDescription")
|
val `knightEndgameDescription` = new I18nKey("puzzleTheme:knightEndgameDescription")
|
||||||
val `long` = new I18nKey("puzzleTheme:long")
|
val `long` = new I18nKey("puzzleTheme:long")
|
||||||
val `longDescription` = new I18nKey("puzzleTheme:longDescription")
|
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 `mate` = new I18nKey("puzzleTheme:mate")
|
||||||
val `mateDescription` = new I18nKey("puzzleTheme:mateDescription")
|
val `mateDescription` = new I18nKey("puzzleTheme:mateDescription")
|
||||||
val `mateIn1` = new I18nKey("puzzleTheme:mateIn1")
|
val `mateIn1` = new I18nKey("puzzleTheme:mateIn1")
|
||||||
|
|
|
@ -76,7 +76,9 @@ object PuzzleDashboard {
|
||||||
PuzzleTheme.mateIn5,
|
PuzzleTheme.mateIn5,
|
||||||
PuzzleTheme.equality,
|
PuzzleTheme.equality,
|
||||||
PuzzleTheme.advantage,
|
PuzzleTheme.advantage,
|
||||||
PuzzleTheme.crushing
|
PuzzleTheme.crushing,
|
||||||
|
PuzzleTheme.master,
|
||||||
|
PuzzleTheme.masterVsMaster
|
||||||
).map(_.key)
|
).map(_.key)
|
||||||
|
|
||||||
val relevantThemes = PuzzleTheme.all collect {
|
val relevantThemes = PuzzleTheme.all collect {
|
||||||
|
|
|
@ -131,7 +131,9 @@ final private[puzzle] class PuzzleFinisher(
|
||||||
PuzzleTheme.knightEndgame,
|
PuzzleTheme.knightEndgame,
|
||||||
PuzzleTheme.rookEndgame,
|
PuzzleTheme.rookEndgame,
|
||||||
PuzzleTheme.queenEndgame,
|
PuzzleTheme.queenEndgame,
|
||||||
PuzzleTheme.queenRookEndgame
|
PuzzleTheme.queenRookEndgame,
|
||||||
|
PuzzleTheme.master,
|
||||||
|
PuzzleTheme.masterVsMaster
|
||||||
).map(_.key)
|
).map(_.key)
|
||||||
|
|
||||||
private def isHinting(theme: PuzzleTheme.Key) = !nonHintingThemes(theme)
|
private def isHinting(theme: PuzzleTheme.Key) = !nonHintingThemes(theme)
|
||||||
|
|
|
@ -39,6 +39,8 @@ object PuzzleTheme {
|
||||||
val kingsideAttack = PuzzleTheme(Key("kingsideAttack"), i.kingsideAttack, i.kingsideAttackDescription)
|
val kingsideAttack = PuzzleTheme(Key("kingsideAttack"), i.kingsideAttack, i.kingsideAttackDescription)
|
||||||
val knightEndgame = PuzzleTheme(Key("knightEndgame"), i.knightEndgame, i.knightEndgameDescription)
|
val knightEndgame = PuzzleTheme(Key("knightEndgame"), i.knightEndgame, i.knightEndgameDescription)
|
||||||
val long = PuzzleTheme(Key("long"), i.long, i.longDescription)
|
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 mate = PuzzleTheme(Key("mate"), i.mate, i.mateDescription)
|
||||||
val mateIn1 = PuzzleTheme(Key("mateIn1"), i.mateIn1, i.mateIn1Description)
|
val mateIn1 = PuzzleTheme(Key("mateIn1"), i.mateIn1, i.mateIn1Description)
|
||||||
val mateIn2 = PuzzleTheme(Key("mateIn2"), i.mateIn2, i.mateIn2Description)
|
val mateIn2 = PuzzleTheme(Key("mateIn2"), i.mateIn2, i.mateIn2Description)
|
||||||
|
@ -135,6 +137,10 @@ object PuzzleTheme {
|
||||||
short,
|
short,
|
||||||
long,
|
long,
|
||||||
veryLong
|
veryLong
|
||||||
|
),
|
||||||
|
trans.puzzle.origin -> List(
|
||||||
|
master,
|
||||||
|
masterVsMaster
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -161,6 +167,8 @@ object PuzzleTheme {
|
||||||
endgame,
|
endgame,
|
||||||
equality,
|
equality,
|
||||||
long,
|
long,
|
||||||
|
master,
|
||||||
|
masterVsMaster,
|
||||||
mate,
|
mate,
|
||||||
mateIn1,
|
mateIn1,
|
||||||
mateIn2,
|
mateIn2,
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="lengths">Lengths</string>
|
<string name="lengths">Lengths</string>
|
||||||
<string name="mates">Mates</string>
|
<string name="mates">Mates</string>
|
||||||
<string name="goals">Goals</string>
|
<string name="goals">Goals</string>
|
||||||
|
<string name="origin">Origin</string>
|
||||||
<string name="specialMoves">Special moves</string>
|
<string name="specialMoves">Special moves</string>
|
||||||
<string name="didYouLikeThisPuzzle">Did you like this puzzle?</string>
|
<string name="didYouLikeThisPuzzle">Did you like this puzzle?</string>
|
||||||
<string name="voteToLoadNextOne">Vote to load the next one!</string>
|
<string name="voteToLoadNextOne">Vote to load the next one!</string>
|
||||||
|
|
|
@ -49,6 +49,10 @@
|
||||||
<string name="knightEndgameDescription">An endgame with only knights and pawns.</string>
|
<string name="knightEndgameDescription">An endgame with only knights and pawns.</string>
|
||||||
<string name="long">Long puzzle</string>
|
<string name="long">Long puzzle</string>
|
||||||
<string name="longDescription">Three moves to win.</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="mate">Mate</string>
|
||||||
<string name="mateDescription">Win the game with style.</string>
|
<string name="mateDescription">Win the game with style.</string>
|
||||||
<string name="mateIn1">Mate in 1</string>
|
<string name="mateIn1">Mate in 1</string>
|
||||||
|
|
Loading…
Reference in New Issue