fix player error messages
This commit is contained in:
parent
438411fabf
commit
4e56f79a4f
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue