Bitboard

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

ethanara
Posts: 134
Joined: Mon May 16, 2011 6:58 pm
Location: Denmark

Bitboard

Post by ethanara »

Hello.
I would start making a engine, and i have readed in CPW that the first thing to do is making a board representation.
I understand the basics of bitboards, but i dont know where to start.
Is there anyone with a example, tutorial, link etc. out there ?
Ethanara
Mark
Posts: 216
Joined: Thu Mar 09, 2006 9:54 pm

Re: Bitboard

Post by Mark »

ethanara wrote:Hello.
I would start making a engine, and i have readed in CPW that the first thing to do is making a board representation.
I understand the basics of bitboards, but i dont know where to start.
Is there anyone with a example, tutorial, link etc. out there ?
Ethanara
Check out this link: http://www.talkchess.com/forum/viewtopic.php?t=38787
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Bitboard

Post by bob »

Mark wrote:
ethanara wrote:Hello.
I would start making a engine, and i have readed in CPW that the first thing to do is making a board representation.
I understand the basics of bitboards, but i dont know where to start.
Is there anyone with a example, tutorial, link etc. out there ?
Ethanara
Check out this link: http://www.talkchess.com/forum/viewtopic.php?t=38787
Also go to my web page at UAB, (www.cis.uab.edu, then follow the path to faculty) and on my personal web page, there's a "board representation" write-up (pretty long, unfortunately) that describes everything but magic (which I need to add as an update)...
ethanara
Posts: 134
Joined: Mon May 16, 2011 6:58 pm
Location: Denmark

Re: Bitboard

Post by ethanara »

Thanks for the links.
I havent yet started making a magic bitboard, and i will not copy because of it is not my code, then i have a bit harder to understand it and to work with it.
Arent there a sample or something?
Edmund
Posts: 670
Joined: Mon Dec 03, 2007 3:01 pm
Location: Barcelona, Spain

Re: Bitboard

Post by Edmund »

ethanara wrote:Arent there a sample or something?
Pradu Kannan kindly left his code Open Source and it is widly used.

http://www.pradu.us/old/Nov27_2008/Buzz/
http://www.pradu.us/old/Nov27_2008/Buzz ... cmoves.zip