Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: bitboards in java?

Author: Peter McKenzie

Date: 20:24:09 04/06/99

Go up one level in this thread


On April 06, 1999 at 15:35:54, Larry Griffiths wrote:

>On April 06, 1999 at 14:58:42, vitor wrote:
>
>>i think i get the idea of bitboards but i dont know any C or C++ yet, i only
>>know java. so is it possible to implement bitboards in java and if so, how would
>>i do move generation with it?
>
>Vitor,
>
>I believe you can do bitboards in java.  JBuilder has a class for
>Big Integers with XOR, AND, and OR methods.  I have not used them
>so I do not know if these methods would be efficient.
>
>Larry.

A long in java is a 64 bit signed integer, an unsigned long is a 64 bit unsigned
integer.  You can play with these using the normal C style bitwise operators.

Peter



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.