Skip to content

Commit

Permalink
rename insights RageQuit => Disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Dec 21, 2015
1 parent aecc646 commit 4c35d8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/insight/src/main/Entry.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@ case class Move(
sealed abstract class Termination(val id: Int, val name: String)
object Termination {
case object ClockFlag extends Termination(1, "Clock flag")
case object RageQuit extends Termination(2, "Rage quit")
case object Disconnect extends Termination(2, "Disconnect")
case object Resignation extends Termination(3, "Resignation")
case object Draw extends Termination(4, "Draw")
case object Stalemate extends Termination(5, "Stalemate")
case object Checkmate extends Termination(6, "Checkmate")

val all = List(ClockFlag, RageQuit, Resignation, Draw, Stalemate, Checkmate)
val all = List(ClockFlag, Disconnect, Resignation, Draw, Stalemate, Checkmate)
val byId = all map { p => (p.id, p) } toMap

import chess.{ Status => S }

def fromStatus(s: chess.Status) = s match {
case S.Timeout => RageQuit
case S.Timeout => Disconnect
case S.Outoftime => ClockFlag
case S.Resign => Resignation
case S.Draw => Draw
Expand Down

0 comments on commit 4c35d8d

Please sign in to comment.