[ Help | Earliest Comments | Latest Comments ][ List All Subjects of Discussion | Create New Subject of Discussion ][ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]Single Comment how do you program a non-capture move[Subject Thread] [Add Response] 🕸Fergus Duniho wrote on Sat, Jul 20 01:35 PM UTC in reply to wdtr2 from 09:48 AM:For potential moves, you need to check whether the space is empty, and for actual moves you need to check whether a capture has been made. See my code for the Cannon for an example of how to do this.
For potential moves, you need to check whether the space is empty, and for actual moves you need to check whether a capture has been made. See my code for the Cannon for an example of how to do this.