Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Peanut head {me} still does not get it. Bitboard puzzles

Author: Dann Corbit

Date: 20:33:50 03/22/99

Go up one level in this thread


On March 22, 1999 at 23:19:57, KarinsDad wrote:
>On March 22, 1999 at 22:35:03, Dann Corbit wrote:
[snip]
>This looks like it will work for some things. However, how do you determine if a
>file is open or not since your bitboard is row based?
Well, you could do 8 tests or (cough, blush) a chummy, cheesy bitwise operation
with one of 8 64 bit integers with the appropriate column bits set, pretending
your struct was a 64 bit integer.  [Looks out the window, changes the subject].
A similar evil trick could be used for diagonals, if a person were to stoop to a
similar underhanded, chummy hack.  But of course, that would be in violation of
the ANSI/ISO standards and not portable at all. [Whistles, while averting his
eyes...]
[snip]



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.