Skip to content

Commit

Permalink
make thematic tournament games analysable
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 8, 2015
1 parent fae498e commit d9b9195
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/game/src/main/Game.scala
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,10 @@ case class Game(

def replayable = imported || finished

def analysable = replayable && playedTurns > 4 && Game.analysableVariants(variant)
def analysable = replayable && playedTurns > 4 && {
// thematic tournament use the "from position" variant
Game.analysableVariants(variant) || tournamentId.isDefined
}

def fromPosition = source ?? (Source.Position==)

Expand Down

0 comments on commit d9b9195

Please sign in to comment.