bug-xboard
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-XBoard] [bug #27153] Pre-move does not work on xboard 4.4beta1


From: anonymous
Subject: [Bug-XBoard] [bug #27153] Pre-move does not work on xboard 4.4beta1
Date: Wed, 07 Oct 2009 18:56:23 +0000
User-agent: Opera/9.10 (X11; Linux i686; U; en)

Follow-up Comment #9, bug #27153 (project xboard):

The following piece of code (in UserMoveTest() in backend.c)
filters out perfectly good premoves - the ones that put a piece
on a piece of the same color. Removing those lines gives
premove handling like in xboard 4.2.7:


    /* note: this code seems to exist for filtering out some obviously
illegal premoves */

    if (    gameMode != EditPosition &&
            (WhitePawn <= pdown && pdown < BlackPawn &&
             WhitePawn <= pup && pup < BlackPawn  ||
             BlackPawn <= pdown && pdown < EmptySquare &&
             BlackPawn <= pup && pup < EmptySquare
            ) && !((gameInfo.variant == VariantFischeRandom ||
gameInfo.variant == VariantCapaRandom) &&
                    (pup == WhiteRook && pdown == WhiteKing && fromY == 0 &&
toY == 0||
                     pup == BlackRook && pdown == BlackKing && fromY ==
BOARD_HEIGHT-1 && toY == BOARD_HEIGHT-1  )
        )           )
         return ImpossibleMove;


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27153>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]