diff --git a/modules/game/src/main/Game.scala b/modules/game/src/main/Game.scala index b82c9fe9b1e9..f529e72744e1 100644 --- a/modules/game/src/main/Game.scala +++ b/modules/game/src/main/Game.scala @@ -681,8 +681,6 @@ object Game { if (variant.chushogi) 1000 else 700 // unlimited can cause StackOverflowError - val maxBotPlies = 600 - val analysableVariants: Set[Variant] = Set( shogi.variant.Standard, shogi.variant.Minishogi, diff --git a/modules/round/src/main/Player.scala b/modules/round/src/main/Player.scala index fe9d5314cd3e..468992718d8a 100644 --- a/modules/round/src/main/Player.scala +++ b/modules/round/src/main/Player.scala @@ -50,7 +50,7 @@ final private class Player( private[round] def bot(usi: Usi, round: RoundDuct)(pov: Pov)(implicit proxy: GameProxy): Fu[Events] = pov match { - case Pov(game, _) if game.playedPlies > Game.maxBotPlies => + case Pov(game, _) if game.playedPlies > Game.maxPlies(game.variant) => round ! TooManyPlies fuccess(Nil) case Pov(game, color) if game playableBy color =>