fix player error messages

This commit is contained in:
Thibault Duplessis 2013-10-25 15:13:18 +02:00
parent 438411fabf
commit 4e56f79a4f

View file

@ -48,10 +48,10 @@ private[round] final class Player(
})
}
} addFailureEffect onFailure
case Pov(game, _) if game.finished fufail(s"$pov game is finished")
case Pov(game, _) if game.aborted fufail(s"$pov game is aborted")
case Pov(_, color) if !game.turnOf(color) fufail(s"$pov not your turn")
case _ fufail(s"$pov move refused for some reason")
case Pov(game, _) if game.finished fufail(s"$pov game is finished")
case Pov(game, _) if game.aborted fufail(s"$pov game is aborted")
case Pov(game, color) if !game.turnOf(color) fufail(s"$pov not your turn")
case _ fufail(s"$pov move refused for some reason")
}
}