Skip to content

Commit

Permalink
register crazyhouse variant
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jan 15, 2016
1 parent e92da74 commit 353c372
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/variant/Variant.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ abstract class Variant(
def atomic = this == Atomic
def horde = this == Horde
def racingKings = this == RacingKings
def crazyhouse = this == Crazyhouse

def exotic = !standard

Expand Down Expand Up @@ -158,7 +159,7 @@ abstract class Variant(

object Variant {

val all = List(Standard, Chess960, FromPosition, KingOfTheHill, ThreeCheck, Antichess, Atomic, Horde, RacingKings)
val all = List(Standard, Chess960, FromPosition, KingOfTheHill, ThreeCheck, Antichess, Atomic, Horde, RacingKings, Crazyhouse)
val byId = all map { v => (v.id, v) } toMap
val byKey = all map { v => (v.key, v) } toMap

Expand Down

0 comments on commit 353c372

Please sign in to comment.