Computer Chess Club Archives


Search

Terms

Messages

Subject: 45 degree rotated bitboards for Bishops

Author: Ed Trice

Date: 20:27:13 12/30/03

Go up one level in this thread


The one rotation was not too bad...


int init_ur45[80] = {        9,
									                             8,   19,
								                            7,  18,  29,
                                  6, 17,  28,  39,
                                5, 16, 27,  38,  49,
                              4, 15, 26, 37,  48,  59,
                            3, 14, 25, 36, 47,  58,  69,
                          2, 13, 24, 35, 46, 57,   68,  79,
                        1, 12, 23, 34, 45,  56,  67,  78,
                      0,  11, 22, 33, 44, 55, 66, 77,
                        10, 21, 32, 43, 54, 65, 76,
                         20, 31, 42, 53, 64, 75,
                           30, 41, 52, 63, 74,
                             40, 51, 62, 73,
                               50, 61, 72,
                                 60, 71,
                                   70
                                   };

...but this one gave me a headache!

int init_r45[80] = {				    44,
									                            36, 28,
								                           21, 15, 10,
                                   6,  3,  1, 0,
                                52, 45, 37, 29, 22,
                              16, 11,  7,  4,  2, 59,
                            53, 46, 38, 30, 23, 17, 12,
                           8,  5, 65, 60, 54, 47, 39, 31,
                        24, 18, 13,  9, 70, 66, 61, 55,
                      48, 40, 32, 25, 19, 14, 74, 71,
                        67, 62, 56, 49, 41, 33, 26,
                         20, 77, 75, 72, 68, 63,
                           57, 50, 42, 34, 27,
                             79, 78, 76, 73,
                               69, 64, 58,
                                 51, 43,
                                   35
                                   };



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.