From c39fb1a68b51ce883759aff86ac93643ccd6d902 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Wed, 28 Sep 2011 23:27:03 +0200 Subject: [PATCH] Disable GuessGameType() for MiniShogi. Game types for MiniShogi are surely different from the ones in Shogi, so this would require serious thought to get it right. Just pretend we don't know. --- gnushogi/eval.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/gnushogi/eval.c b/gnushogi/eval.c index 987b304..391cdb8 100644 --- a/gnushogi/eval.c +++ b/gnushogi/eval.c @@ -2325,6 +2325,7 @@ ScorePosition(short side) * Try to determine the game type of "side". */ +#ifndef MINISHOGI inline static void GuessGameType(short side_to_move) { @@ -2458,6 +2459,7 @@ GuessGameType(short side_to_move) } } } +#endif @@ -2467,7 +2469,13 @@ DetermineGameType(short side_to_move) { short side; +#ifndef MINISHOGI + /* FIXME: calculations below are wrong for minishogi, all done for 9x9 */ GuessGameType(side_to_move); +#else + GameType[black] = UNKNOWN; + GameType[white] = UNKNOWN; +#endif array_zero(Mpawn, sizeof(Mpawn)); #ifndef MINISHOGI -- 1.7.0.4