Functions | |
static unsigned long long | flip_A1 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_B1 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_C1 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_D1 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_E1 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_F1 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_G1 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_H1 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_A2 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_B2 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_C2 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_D2 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_E2 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_F2 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_G2 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_H2 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_A3 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_B3 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_C3 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_D3 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_E3 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_F3 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_G3 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_H3 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_A4 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_B4 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_C4 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_D4 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_E4 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_F4 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_G4 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_H4 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_A5 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_B5 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_C5 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_D5 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_E5 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_F5 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_G5 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_H5 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_A6 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_B6 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_C6 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_D6 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_E6 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_F6 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_G6 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_H6 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_A7 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_B7 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_C7 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_D7 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_E7 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_F7 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_G7 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_H7 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_A8 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_B8 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_C8 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_D8 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_E8 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_F8 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_G8 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_H8 (const unsigned long long P, const unsigned long long O) |
static unsigned long long | flip_pass (const unsigned long long P, const unsigned long long O) |
Variables | |
const unsigned char | OUTFLANK [8][64] |
const unsigned char | FLIPPED [8][144] |
unsigned long long | B1G1 [64] |
unsigned long long | B2G2 [64] |
unsigned long long | B3G3 [64] |
unsigned long long | B4G4 [64] |
unsigned long long | B5G5 [64] |
unsigned long long | B6G6 [64] |
unsigned long long | B7G7 [64] |
unsigned long long | B8G8 [64] |
unsigned long long | A2A7 [64] |
unsigned long long | B2B7 [64] |
unsigned long long | C2C7 [64] |
unsigned long long | D2D7 [64] |
unsigned long long | E2E7 [64] |
unsigned long long | F2F7 [64] |
unsigned long long | G2G7 [64] |
unsigned long long | H2H7 [64] |
unsigned long long | E2B5 [16] |
unsigned long long | F2B6 [32] |
unsigned long long | G2B7 [64] |
unsigned long long | G3C7 [32] |
unsigned long long | G4D7 [16] |
unsigned long long | B4E7 [16] |
unsigned long long | B3F7 [32] |
unsigned long long | B2G7 [64] |
unsigned long long | C2G6 [32] |
unsigned long long | D2G5 [16] |
unsigned long long | B2C1G5 [64] |
unsigned long long | B3D1G4 [64] |
unsigned long long | B4E1G3 [64] |
unsigned long long | B5F1G2 [64] |
unsigned long long | B3C2G6 [64] |
unsigned long long | B4D2G5 [64] |
unsigned long long | B5E2G4 [64] |
unsigned long long | B6F2G3 [64] |
unsigned long long | B6C7G3 [64] |
unsigned long long | B5D7G4 [64] |
unsigned long long | B4E7G5 [64] |
unsigned long long | B3F7G6 [64] |
unsigned long long | B7C8G4 [64] |
unsigned long long | B6D8G5 [64] |
unsigned long long | B5E8G6 [64] |
unsigned long long | B4F8G7 [64] |
unsigned long long | G2H3D7 [64] |
unsigned long long | F2H4E7 [64] |
unsigned long long | E2H5F7 [64] |
unsigned long long | D2H6G7 [64] |
unsigned long long | F2G3C7 [64] |
unsigned long long | E2G4D7 [64] |
unsigned long long | D2G5E7 [64] |
unsigned long long | C2G6F7 [64] |
unsigned long long | B2A3E7 [64] |
unsigned long long | C2A4D7 [64] |
unsigned long long | D2A5C7 [64] |
unsigned long long | E2A6B7 [64] |
unsigned long long | C2B3F7 [64] |
unsigned long long | D2B4E7 [64] |
unsigned long long | E2B5D7 [64] |
unsigned long long | F2B6C7 [64] |
unsigned long long(* | flip [])(const unsigned long long, const unsigned long long) |
This module deals with flipping discs.
A function is provided for each square of the board. These functions are gathered into an array of functions, so that a fast access to each function is allowed. The generic form of the function take as input the player and the opponent bitboards and return the flipped squares into a bitboard.
Given the following notation:
File automatically generated
|
static |
Compute flipped discs when playing on square A1.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square A2.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square A3.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square A4.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square A5.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square A6.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square A7.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square A8.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square B1.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square B2.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square B3.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square B4.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square B5.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square B6.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square B7.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square B8.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square C1.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square C2.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square C3.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square C4.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square C5.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square C6.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square C7.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square C8.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square D1.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square D2.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square D3.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square D4.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square D5.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square D6.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square D7.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square D8.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square E1.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square E2.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square E3.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square E4.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square E5.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square E6.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square E7.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square E8.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square F1.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square F2.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square F3.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square F4.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square F5.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square F6.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square F7.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square F8.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square G1.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square G2.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square G3.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square G4.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square G5.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square G6.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square G7.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square G8.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square H1.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square H2.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square H3.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square H4.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square H5.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square H6.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square H7.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute flipped discs when playing on square H8.
P | player's disc pattern. |
O | opponent's disc pattern. |
|
static |
Compute (zero-) flipped discs when plassing.
P | player's disc pattern. |
O | opponent's disc pattern. |
unsigned long long A2A7[64] |
conversion from an 8-bit line to the A2-A7- line
unsigned long long B1G1[64] |
conversion from an 8-bit line to the B1-G1- line
unsigned long long B2A3E7[64] |
conversion from an 8-bit line to the B2-A3-E7 line
unsigned long long B2B7[64] |
conversion from an 8-bit line to the B2-B7- line
unsigned long long B2C1G5[64] |
conversion from an 8-bit line to the B2-C1-G5 line
unsigned long long B2G2[64] |
conversion from an 8-bit line to the B2-G2- line
unsigned long long B2G7[64] |
conversion from an 8-bit line to the B2-G7- line
unsigned long long B3C2G6[64] |
conversion from an 8-bit line to the B3-C2-G6 line
unsigned long long B3D1G4[64] |
conversion from an 8-bit line to the B3-D1-G4 line
unsigned long long B3F7[32] |
conversion from an 8-bit line to the B3-F7- line
unsigned long long B3F7G6[64] |
conversion from an 8-bit line to the B3-F7-G6 line
unsigned long long B3G3[64] |
conversion from an 8-bit line to the B3-G3- line
unsigned long long B4D2G5[64] |
conversion from an 8-bit line to the B4-D2-G5 line
unsigned long long B4E1G3[64] |
conversion from an 8-bit line to the B4-E1-G3 line
unsigned long long B4E7[16] |
conversion from an 8-bit line to the B4-E7- line
unsigned long long B4E7G5[64] |
conversion from an 8-bit line to the B4-E7-G5 line
unsigned long long B4F8G7[64] |
conversion from an 8-bit line to the B4-F8-G7 line
unsigned long long B4G4[64] |
conversion from an 8-bit line to the B4-G4- line
unsigned long long B5D7G4[64] |
conversion from an 8-bit line to the B5-D7-G4 line
unsigned long long B5E2G4[64] |
conversion from an 8-bit line to the B5-E2-G4 line
unsigned long long B5E8G6[64] |
conversion from an 8-bit line to the B5-E8-G6 line
unsigned long long B5F1G2[64] |
conversion from an 8-bit line to the B5-F1-G2 line
unsigned long long B5G5[64] |
conversion from an 8-bit line to the B5-G5- line
unsigned long long B6C7G3[64] |
conversion from an 8-bit line to the B6-C7-G3 line
unsigned long long B6D8G5[64] |
conversion from an 8-bit line to the B6-D8-G5 line
unsigned long long B6F2G3[64] |
conversion from an 8-bit line to the B6-F2-G3 line
unsigned long long B6G6[64] |
conversion from an 8-bit line to the B6-G6- line
unsigned long long B7C8G4[64] |
conversion from an 8-bit line to the B7-C8-G4 line
unsigned long long B7G7[64] |
conversion from an 8-bit line to the B7-G7- line
unsigned long long B8G8[64] |
conversion from an 8-bit line to the B8-G8- line
unsigned long long C2A4D7[64] |
conversion from an 8-bit line to the C2-A4-D7 line
unsigned long long C2B3F7[64] |
conversion from an 8-bit line to the C2-B3-F7 line
unsigned long long C2C7[64] |
conversion from an 8-bit line to the C2-C7- line
unsigned long long C2G6[32] |
conversion from an 8-bit line to the C2-G6- line
unsigned long long C2G6F7[64] |
conversion from an 8-bit line to the C2-G6-F7 line
unsigned long long D2A5C7[64] |
conversion from an 8-bit line to the D2-A5-C7 line
unsigned long long D2B4E7[64] |
conversion from an 8-bit line to the D2-B4-E7 line
unsigned long long D2D7[64] |
conversion from an 8-bit line to the D2-D7- line
unsigned long long D2G5[16] |
conversion from an 8-bit line to the D2-G5- line
unsigned long long D2G5E7[64] |
conversion from an 8-bit line to the D2-G5-E7 line
unsigned long long D2H6G7[64] |
conversion from an 8-bit line to the D2-H6-G7 line
unsigned long long E2A6B7[64] |
conversion from an 8-bit line to the E2-A6-B7 line
unsigned long long E2B5[16] |
conversion from an 8-bit line to the E2-B5- line
unsigned long long E2B5D7[64] |
conversion from an 8-bit line to the E2-B5-D7 line
unsigned long long E2E7[64] |
conversion from an 8-bit line to the E2-E7- line
unsigned long long E2G4D7[64] |
conversion from an 8-bit line to the E2-G4-D7 line
unsigned long long E2H5F7[64] |
conversion from an 8-bit line to the E2-H5-F7 line
unsigned long long F2B6[32] |
conversion from an 8-bit line to the F2-B6- line
unsigned long long F2B6C7[64] |
conversion from an 8-bit line to the F2-B6-C7 line
unsigned long long F2F7[64] |
conversion from an 8-bit line to the F2-F7- line
unsigned long long F2G3C7[64] |
conversion from an 8-bit line to the F2-G3-C7 line
unsigned long long F2H4E7[64] |
conversion from an 8-bit line to the F2-H4-E7 line
unsigned long long(* flip[])(const unsigned long long, const unsigned long long) |
Array of functions to compute flipped discs
const unsigned char FLIPPED[8][144] |
flip array
unsigned long long G2B7[64] |
conversion from an 8-bit line to the G2-B7- line
unsigned long long G2G7[64] |
conversion from an 8-bit line to the G2-G7- line
unsigned long long G2H3D7[64] |
conversion from an 8-bit line to the G2-H3-D7 line
unsigned long long G3C7[32] |
conversion from an 8-bit line to the G3-C7- line
unsigned long long G4D7[16] |
conversion from an 8-bit line to the G4-D7- line
unsigned long long H2H7[64] |
conversion from an 8-bit line to the H2-H7- line
const unsigned char OUTFLANK[8][64] |
outflank array