Skip to content

Commit

Permalink
Can't force resignation of AI player
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed May 10, 2012
1 parent 9016e9c commit 011e13a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Finisher.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ final class Finisher(
else !!("game is not resignable")

def resignForce(pov: Pov): ValidIOEvents =
if (pov.game.resignable) finish(pov.game, Timeout, Some(pov.color))
if (pov.game.resignable && !pov.game.hasAi)
finish(pov.game, Timeout, Some(pov.color))
else !!("game is not resignable")

def drawClaim(pov: Pov): ValidIOEvents = pov match {
Expand Down

0 comments on commit 011e13a

Please sign in to comment.