From: Yann Dirson Date: Wed, 28 Sep 2011 21:27:03 +0000 (+0200) Subject: Disable GuessGameType() for MiniShogi. X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=commitdiff_plain;h=c39fb1a68b51ce883759aff86ac93643ccd6d902 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. --- 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