Article View: gnu.chess
Article #1166legal move options
From: Banerjee
Date: Sat, 31 Jul 2004 20:48
Date: Sat, 31 Jul 2004 20:48
25 lines
2251 bytes
2251 bytes
Hello group, My group has added extra code to enable standard text input for moving pieces instead of mouse-clicks. But here is the problem: There are three different functions involved in mouse-click as in xboard.c : 1)DragPieceBegin(int x, int y) 2)DragPieceMove(int x, int y) 3)DragPieceEnd(int x, int y) We are trying to figure out a way to simulate the functionalities of these functions, but we need to figure out a way to get around the second function. Also, the game will allow moves that are not legal, but giving the "xncp" option should enable regular chess game. Is there any other way to restrict moves to legal only and let the games reject illegal moves? Thanks Jay __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail
Technical Details
Message-ID:
<mailman.2295.1091307166.1960.info-gnu-chess@gnu.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10d71d,461c0866413b8df2,start X-Google-Attributes: gid10d71d,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail From: Banerjee <dhriti71@yahoo.com> Newsgroups: gnu.chess Subject: legal move options Date: Sat, 31 Jul 2004 13:48:49 -0700 (PDT) Lines: 27 Approved: info-gnu-chess@gnu.org Message-ID: <mailman.2295.1091307166.1960.info-gnu-chess@gnu.org> Reply-To: dbanerje@umd.edu NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1091306961 11471 199.232.76.165 (31 Jul 2004 20:49:21 GMT) X-Complaints-To: news@news.stanford.edu To: info-gnu-chess@gnu.org Envelope-to: info-gnu-chess@gnu.org X-BeenThere: info-gnu-chess@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Announcements and discussions about GNU Chess <info-gnu-chess.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/info-gnu-chess>, <mailto:info-gnu-chess-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/info-gnu-chess> List-Post: <mailto:info-gnu-chess@gnu.org> List-Help: <mailto:info-gnu-chess-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/info-gnu-chess>, <mailto:info-gnu-chess-request@gnu.org?subject=subscribe>