Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Given a position, is it check?

Author: Roman Hartmann

Date: 02:52:40 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.

Hello,
are you writing a chess engine or rather a GUI? If you're working on a GUI
performance won't matter that much and I guess the easiest way would be to use
an 8x8 array then. Basically you need to write/use a move generator. At least if
you want to distinguish if it's check/Stalemate/mate.

best regards
Roman



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.