X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Feval.c;h=cbae96804230327b20852fc8cf35f0ac769cec54;hb=e6d0e922c94c9999f1f8a803af008e0a482bedf0;hp=b0ae6c1f8de2ed2bcfc9c9ca8411edc2081c3b63;hpb=4e43501cd68d5bea128c89a615d716512b48c08e;p=gnushogi.git diff --git a/gnushogi/eval.c b/gnushogi/eval.c index b0ae6c1..cbae968 100644 --- a/gnushogi/eval.c +++ b/gnushogi/eval.c @@ -4,6 +4,7 @@ * ---------------------------------------------------------------------- * Copyright (c) 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation + * Copyright (c) 2008, 2013, 2014 Yann Dirson and the Free Software Foundation * * GNU SHOGI is based on GNU CHESS * @@ -1354,6 +1355,12 @@ PawnValue(short sq, short side) if (in_opening_stage) { +#ifndef MINISHOGI +/* FIXME: [HGM] The 3rd-rank Pawn section is meaningless in mini-Shogi, + * (which does not have opposing Pawns), and can do out-of-bound access, + * as the promotion zone is only 1 rank, so Pawns can be closer than 3 ranks + * to the board edge. + */ if (crow(c1, sq) == 2) /* pawn on 3d rank */ { if (board[(c1 == black) ? @@ -1383,7 +1390,6 @@ PawnValue(short sq, short side) } } -#ifndef MINISHOGI /* FIXME: calculations below are wrong for minishogi, all done for 9x9 * board - and anyway we don't know the stage really :) */