Author: Steve Maughan
Date: 03:01:28 03/27/02
Go up one level in this thread
Andreas, >AFAIK your Arena is developed in Delphi. So in Delphi you can use the events >"OnMouseDown" and "OnMouseUp". If the chess coordinates after OnMouseUp not the >same than you have a complete move if both coordinates are on the chessboard. >If they are the same than you have the "from coordinate" or the "to >coordinate". I think this must be very easy for you to implement. I'm not sure I'd call it 'easy'. The complication is that the pieces are not rectangles so you need to store the background image, and mask the bitmap of the pieces. Not too difficult but certainly not trivial. One advantage that chess does have is that only one image is moving at any one time - unlike an arcade game where there are many sprites. Regards, Steve
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.