For those who hadn't got them, here are the seminal papers that founded the field of checkers programming by the great IBM scientist Arthur L. Samuel (from 1959 and 1967 respectively!)Rein Halbersma wrote:After better reading the contributions of Bert and Gérard, ghost fields are even more clever than I thought. They have a dual purpose: have uniform shifts for left and right moving AND remove the need for edge detection.
The reason: they appear on *both* edges of the board like this:
Just a question for historical reasons: who invented this, and when? Or did you invent this independently? And in which forum was this first discussed? I couldn't find anything with Google.Code: Select all
{ 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, [10] [10] 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, [21] [21] 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, [32] [32] 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, [43] [43] 44, 45, 46, 47, 48, 49, 50, 51, 52, 53 }
Rein
http://www.research.ibm.com/journal/rd/ ... d0303B.pdf
http://www.research.ibm.com/journal/rd/ ... d1106C.pdf
Look at figure A-1 in the appendix of the first paper: here is his 35-bit bitboard layout with 3 ghost squares! For years, IBM had a line of 36-bit machines that allowed Samuel to implement his clever bitboard scheme.
Rein