Excellent Chess Programming Tutorial
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
=============================Andrew Schwartz Moagi
October 20, 2003 09:21 AM
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.
Could anyone explain to me what the umpersund(& symbol represents here pliz.
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.
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
October 20, 2003 04:31 PM
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.
Here is a webpage that describes the 0x88 trick. Read that and see if it still doesn''t make sense.
October 23, 2003 04:20 AM
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement