Advertisement

Excellent Chess Programming Tutorial

Started by October 16, 2003 10:27 PM
19 comments, last by Russell 21 years ago
Someone posted this at at www.talkchess.com forum. I haven''t read all of it yet, but it looks like a very good introduction to computer chess programs (and other similar programs, such as checkers, go, or whatever). It seems to cover quite a lot and seems pretty easy to understand. http://www.cs.man.ac.uk/~schalk/3192/large.pdf
Thanks Russell i needed something like that buddie, i''ll keep in touch, hav nice weekend ok

=============================
Andrew Schwartz Moagi
=============================Andrew Schwartz Moagi
Advertisement
This is much faster than the first version. To check whether a number i is a valid position on the board, check whether it satisfies i&0x88 == 0 (&: bitwise).

Could anyone explain to me what the umpersund(& symbol represents here pliz.
& represents a bit-wise AND operation
i & 0x88 == 0

This is a bitwise comparision of ''i'' to the hexidecimal number 0x88. If i is different in anyway than 0x88 then the answer will be 0 (false).

ie: 0x1 & 0x2 == 0

001 AND
010
-----
011

The answer would be 3.
------------------http://www.nentari.com
i don''t think i get the concept right here could you please clarify why 0 is used here since it seems that the right side of the & symbol will always be zero. could you please explain the 0x88 part further.
Advertisement
Here is a webpage that describes the 0x88 trick. Read that and see if it still doesn''t make sense.
Before you can read futher http://www.cs.man.ac.uk/~schalk/3192/large.pdf i mean just before you go to task 2 Does this represents the board virtually or does it really implement the board such that a one can really see the graphics the pieces moving and all the like........
quote: Original post by Anonymous Poster
Before you can read futher http://www.cs.man.ac.uk/~schalk/3192/large.pdf i mean just before you go to task 2 Does this represents the board virtually or does it really implement the board such that a one can really see the graphics the pieces moving and all the like........


Don''t get your point, please rephrase it!

=============================
Andrew Schwartz Moagi
=============================Andrew Schwartz Moagi
One can also get further help from this site
http://www.chessopolis.com/cchess.htm

=============================
Andrew Schwartz Moagi
=============================Andrew Schwartz Moagi

This topic is closed to new replies.

Advertisement