Author: Odd Gunnar Malin
Date: 03:51:20 02/03/05
Go up one level in this thread
On February 03, 2005 at 05:01:08, Jose Cortes wrote: > >Hi, I have a little doubt about finding the best way to, given a position, >verify if it is check, using whatever data estructure, bitboard, etc. There are >a lot of ways to do it, most of them using loops, but what is the most >efficient?Someone can help me? >Thx. Hi. What I do in general is to replace the king with knight, bishop, etc. and see if it can hit the same piece of opposite color. Some places if you have more information (know last move) you can do it a little faster. This is for a traditional board layout (8x8), maybe there is some clever way with bitboards. Odd Gunnar
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.