Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Bitboard engine authors question

Author: Tom Likens

Date: 17:11:00 09/23/02

Go up one level in this thread



Russell,

Actually, I've already written a tool similiar to this using
Qt under Linux.  Like you I got tired of setting bits manually
so I spent an afternoon doing just what you're talking about
(although to be honest I didn't implement the diagonals and
ranks idea, which is quite clever).

One thing I did implement that has been useful is a way to
toggle the view so that it shows the bit locations (i.e. for
you a1 would be 0, etc.).  If you really wanted to make it
general purpose you should probably have a menu option that
would change the bit mapping so that everyone could use
it, regardless of the mapping they selected.  You also will
want to enable "rubber-banding" so that you can select a
group of squares by drawing a square around them with the
mouse.

Anyway, if you're interested (or anyone else for that matter)
I'd be happy to send you the source code for the program
I wrote.  It's pretty simple but has proven useful more
than once.

regards,
--tom

On September 23, 2002 at 18:31:23, Russell Reagan wrote:

>On September 23, 2002 at 15:30:49, Robert Hyatt wrote:
>
>>On September 23, 2002 at 15:13:44, Russell Reagan wrote:
>>
>>>My bitboard representation uses bit 0 as a1, and bit 63 as h8. I would like to
>>>know if others do this differently. Thanks.
>>>
>>>Russell
>>
>>That is what I use.   I don't think it matters at all and I
>>chose that representation so that I could "visualize" the
>>board easier.
>
>I don't think it matters either, but I'm writing a little tool
>to help me create and manipulate bitboards so I can point and
>click to turn squares, ranks, files, and diagonals "on" or
>"off" and quickly get it's hex or decimal equivalent for
>use in my program. I figured there are others who use different
>bit representations than I. I suppose some might even use the
>top 4 bytes for white squares and the bottom for black squares
>to make bishops more efficient on 32-bit machines, although that
>might make rotated bitboards awkward. Anyway, I just thought
>I'd ask before I took the extra time to make this tool
>configurable so others could use it if they desired.
>
>Now's the time to submit your feature requests! :)
>
>Russell



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.