My Project
Functions | Variables
count_flip.c File Reference

Functions

static int count_last_flip_A1 (const unsigned long long P)
 
static int count_last_flip_B1 (const unsigned long long P)
 
static int count_last_flip_C1 (const unsigned long long P)
 
static int count_last_flip_D1 (const unsigned long long P)
 
static int count_last_flip_E1 (const unsigned long long P)
 
static int count_last_flip_F1 (const unsigned long long P)
 
static int count_last_flip_G1 (const unsigned long long P)
 
static int count_last_flip_H1 (const unsigned long long P)
 
static int count_last_flip_A2 (const unsigned long long P)
 
static int count_last_flip_B2 (const unsigned long long P)
 
static int count_last_flip_C2 (const unsigned long long P)
 
static int count_last_flip_D2 (const unsigned long long P)
 
static int count_last_flip_E2 (const unsigned long long P)
 
static int count_last_flip_F2 (const unsigned long long P)
 
static int count_last_flip_G2 (const unsigned long long P)
 
static int count_last_flip_H2 (const unsigned long long P)
 
static int count_last_flip_A3 (const unsigned long long P)
 
static int count_last_flip_B3 (const unsigned long long P)
 
static int count_last_flip_C3 (const unsigned long long P)
 
static int count_last_flip_D3 (const unsigned long long P)
 
static int count_last_flip_E3 (const unsigned long long P)
 
static int count_last_flip_F3 (const unsigned long long P)
 
static int count_last_flip_G3 (const unsigned long long P)
 
static int count_last_flip_H3 (const unsigned long long P)
 
static int count_last_flip_A4 (const unsigned long long P)
 
static int count_last_flip_B4 (const unsigned long long P)
 
static int count_last_flip_C4 (const unsigned long long P)
 
static int count_last_flip_D4 (const unsigned long long P)
 
static int count_last_flip_E4 (const unsigned long long P)
 
static int count_last_flip_F4 (const unsigned long long P)
 
static int count_last_flip_G4 (const unsigned long long P)
 
static int count_last_flip_H4 (const unsigned long long P)
 
static int count_last_flip_A5 (const unsigned long long P)
 
static int count_last_flip_B5 (const unsigned long long P)
 
static int count_last_flip_C5 (const unsigned long long P)
 
static int count_last_flip_D5 (const unsigned long long P)
 
static int count_last_flip_E5 (const unsigned long long P)
 
static int count_last_flip_F5 (const unsigned long long P)
 
static int count_last_flip_G5 (const unsigned long long P)
 
static int count_last_flip_H5 (const unsigned long long P)
 
static int count_last_flip_A6 (const unsigned long long P)
 
static int count_last_flip_B6 (const unsigned long long P)
 
static int count_last_flip_C6 (const unsigned long long P)
 
static int count_last_flip_D6 (const unsigned long long P)
 
static int count_last_flip_E6 (const unsigned long long P)
 
static int count_last_flip_F6 (const unsigned long long P)
 
static int count_last_flip_G6 (const unsigned long long P)
 
static int count_last_flip_H6 (const unsigned long long P)
 
static int count_last_flip_A7 (const unsigned long long P)
 
static int count_last_flip_B7 (const unsigned long long P)
 
static int count_last_flip_C7 (const unsigned long long P)
 
static int count_last_flip_D7 (const unsigned long long P)
 
static int count_last_flip_E7 (const unsigned long long P)
 
static int count_last_flip_F7 (const unsigned long long P)
 
static int count_last_flip_G7 (const unsigned long long P)
 
static int count_last_flip_H7 (const unsigned long long P)
 
static int count_last_flip_A8 (const unsigned long long P)
 
static int count_last_flip_B8 (const unsigned long long P)
 
static int count_last_flip_C8 (const unsigned long long P)
 
static int count_last_flip_D8 (const unsigned long long P)
 
static int count_last_flip_E8 (const unsigned long long P)
 
static int count_last_flip_F8 (const unsigned long long P)
 
static int count_last_flip_G8 (const unsigned long long P)
 
static int count_last_flip_H8 (const unsigned long long P)
 
static int count_last_flip_pass (const unsigned long long P)
 

Variables

const char COUNT_FLIP [8][256]
 
int(* count_last_flip [])(const unsigned long long)
 

Function Documentation

◆ count_last_flip_A1()

static int count_last_flip_A1 ( const unsigned long long  P)
static

Count last flipped discs when playing on square A1.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_A2()

static int count_last_flip_A2 ( const unsigned long long  P)
static

Count last flipped discs when playing on square A2.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_A3()

static int count_last_flip_A3 ( const unsigned long long  P)
static

Count last flipped discs when playing on square A3.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_A4()

static int count_last_flip_A4 ( const unsigned long long  P)
static

Count last flipped discs when playing on square A4.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_A5()

static int count_last_flip_A5 ( const unsigned long long  P)
static

Count last flipped discs when playing on square A5.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_A6()

static int count_last_flip_A6 ( const unsigned long long  P)
static

Count last flipped discs when playing on square A6.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_A7()

static int count_last_flip_A7 ( const unsigned long long  P)
static

Count last flipped discs when playing on square A7.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_A8()

static int count_last_flip_A8 ( const unsigned long long  P)
static

Count last flipped discs when playing on square A8.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_B1()

static int count_last_flip_B1 ( const unsigned long long  P)
static

Count last flipped discs when playing on square B1.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_B2()

static int count_last_flip_B2 ( const unsigned long long  P)
static

Count last flipped discs when playing on square B2.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_B3()

static int count_last_flip_B3 ( const unsigned long long  P)
static

Count last flipped discs when playing on square B3.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_B4()

static int count_last_flip_B4 ( const unsigned long long  P)
static

Count last flipped discs when playing on square B4.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_B5()

static int count_last_flip_B5 ( const unsigned long long  P)
static

Count last flipped discs when playing on square B5.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_B6()

static int count_last_flip_B6 ( const unsigned long long  P)
static

Count last flipped discs when playing on square B6.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_B7()

static int count_last_flip_B7 ( const unsigned long long  P)
static

Count last flipped discs when playing on square B7.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_B8()

static int count_last_flip_B8 ( const unsigned long long  P)
static

Count last flipped discs when playing on square B8.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_C1()

static int count_last_flip_C1 ( const unsigned long long  P)
static

Count last flipped discs when playing on square C1.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_C2()

static int count_last_flip_C2 ( const unsigned long long  P)
static

Count last flipped discs when playing on square C2.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_C3()

static int count_last_flip_C3 ( const unsigned long long  P)
static

Count last flipped discs when playing on square C3.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_C4()

static int count_last_flip_C4 ( const unsigned long long  P)
static

Count last flipped discs when playing on square C4.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_C5()

static int count_last_flip_C5 ( const unsigned long long  P)
static

Count last flipped discs when playing on square C5.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_C6()

static int count_last_flip_C6 ( const unsigned long long  P)
static

Count last flipped discs when playing on square C6.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_C7()

static int count_last_flip_C7 ( const unsigned long long  P)
static

Count last flipped discs when playing on square C7.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_C8()

static int count_last_flip_C8 ( const unsigned long long  P)
static

Count last flipped discs when playing on square C8.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_D1()

static int count_last_flip_D1 ( const unsigned long long  P)
static

Count last flipped discs when playing on square D1.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_D2()

static int count_last_flip_D2 ( const unsigned long long  P)
static

Count last flipped discs when playing on square D2.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_D3()

static int count_last_flip_D3 ( const unsigned long long  P)
static

Count last flipped discs when playing on square D3.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_D4()

static int count_last_flip_D4 ( const unsigned long long  P)
static

Count last flipped discs when playing on square D4.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_D5()

static int count_last_flip_D5 ( const unsigned long long  P)
static

Count last flipped discs when playing on square D5.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_D6()

static int count_last_flip_D6 ( const unsigned long long  P)
static

Count last flipped discs when playing on square D6.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_D7()

static int count_last_flip_D7 ( const unsigned long long  P)
static

Count last flipped discs when playing on square D7.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_D8()

static int count_last_flip_D8 ( const unsigned long long  P)
static

Count last flipped discs when playing on square D8.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_E1()

static int count_last_flip_E1 ( const unsigned long long  P)
static

Count last flipped discs when playing on square E1.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_E2()

static int count_last_flip_E2 ( const unsigned long long  P)
static

Count last flipped discs when playing on square E2.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_E3()

static int count_last_flip_E3 ( const unsigned long long  P)
static

Count last flipped discs when playing on square E3.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_E4()

static int count_last_flip_E4 ( const unsigned long long  P)
static

Count last flipped discs when playing on square E4.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_E5()

static int count_last_flip_E5 ( const unsigned long long  P)
static

Count last flipped discs when playing on square E5.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_E6()

static int count_last_flip_E6 ( const unsigned long long  P)
static

Count last flipped discs when playing on square E6.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_E7()

static int count_last_flip_E7 ( const unsigned long long  P)
static

Count last flipped discs when playing on square E7.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_E8()

static int count_last_flip_E8 ( const unsigned long long  P)
static

Count last flipped discs when playing on square E8.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_F1()

static int count_last_flip_F1 ( const unsigned long long  P)
static

Count last flipped discs when playing on square F1.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_F2()

static int count_last_flip_F2 ( const unsigned long long  P)
static

Count last flipped discs when playing on square F2.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_F3()

static int count_last_flip_F3 ( const unsigned long long  P)
static

Count last flipped discs when playing on square F3.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_F4()

static int count_last_flip_F4 ( const unsigned long long  P)
static

Count last flipped discs when playing on square F4.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_F5()

static int count_last_flip_F5 ( const unsigned long long  P)
static

Count last flipped discs when playing on square F5.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_F6()

static int count_last_flip_F6 ( const unsigned long long  P)
static

Count last flipped discs when playing on square F6.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_F7()

static int count_last_flip_F7 ( const unsigned long long  P)
static

Count last flipped discs when playing on square F7.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_F8()

static int count_last_flip_F8 ( const unsigned long long  P)
static

Count last flipped discs when playing on square F8.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_G1()

static int count_last_flip_G1 ( const unsigned long long  P)
static

Count last flipped discs when playing on square G1.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_G2()

static int count_last_flip_G2 ( const unsigned long long  P)
static

Count last flipped discs when playing on square G2.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_G3()

static int count_last_flip_G3 ( const unsigned long long  P)
static

Count last flipped discs when playing on square G3.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_G4()

static int count_last_flip_G4 ( const unsigned long long  P)
static

Count last flipped discs when playing on square G4.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_G5()

static int count_last_flip_G5 ( const unsigned long long  P)
static

Count last flipped discs when playing on square G5.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_G6()

static int count_last_flip_G6 ( const unsigned long long  P)
static

Count last flipped discs when playing on square G6.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_G7()

static int count_last_flip_G7 ( const unsigned long long  P)
static

Count last flipped discs when playing on square G7.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_G8()

static int count_last_flip_G8 ( const unsigned long long  P)
static

Count last flipped discs when playing on square G8.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_H1()

static int count_last_flip_H1 ( const unsigned long long  P)
static

Count last flipped discs when playing on square H1.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_H2()

static int count_last_flip_H2 ( const unsigned long long  P)
static

Count last flipped discs when playing on square H2.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_H3()

static int count_last_flip_H3 ( const unsigned long long  P)
static

Count last flipped discs when playing on square H3.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_H4()

static int count_last_flip_H4 ( const unsigned long long  P)
static

Count last flipped discs when playing on square H4.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_H5()

static int count_last_flip_H5 ( const unsigned long long  P)
static

Count last flipped discs when playing on square H5.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_H6()

static int count_last_flip_H6 ( const unsigned long long  P)
static

Count last flipped discs when playing on square H6.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_H7()

static int count_last_flip_H7 ( const unsigned long long  P)
static

Count last flipped discs when playing on square H7.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_H8()

static int count_last_flip_H8 ( const unsigned long long  P)
static

Count last flipped discs when playing on square H8.

Parameters
Pplayer's disc pattern.
Returns
flipped disc count.

◆ count_last_flip_pass()

static int count_last_flip_pass ( const unsigned long long  P)
static

Count last flipped discs when plassing.

Parameters
Pplayer's disc pattern (unused).
Returns
zero.

Variable Documentation

◆ COUNT_FLIP

const char COUNT_FLIP[8][256]

precomputed count flip array

◆ count_last_flip

int(* count_last_flip[])(const unsigned long long) ( const unsigned long long  )
Initial value:
= {
}
static int count_last_flip_G3(const unsigned long long P)
Definition: count_flip.c:501
static int count_last_flip_E1(const unsigned long long P)
Definition: count_flip.c:191
static int count_last_flip_D6(const unsigned long long P)
Definition: count_flip.c:867
static int count_last_flip_A4(const unsigned long long P)
Definition: count_flip.c:535
static int count_last_flip_F3(const unsigned long long P)
Definition: count_flip.c:483
static int count_last_flip_C3(const unsigned long long P)
Definition: count_flip.c:429
static int count_last_flip_G1(const unsigned long long P)
Definition: count_flip.c:225
static int count_last_flip_H1(const unsigned long long P)
Definition: count_flip.c:242
static int count_last_flip_D5(const unsigned long long P)
Definition: count_flip.c:727
static int count_last_flip_B8(const unsigned long long P)
Definition: count_flip.c:1108
static int count_last_flip_G5(const unsigned long long P)
Definition: count_flip.c:781
static int count_last_flip_H3(const unsigned long long P)
Definition: count_flip.c:518
static int count_last_flip_F4(const unsigned long long P)
Definition: count_flip.c:623
static int count_last_flip_A5(const unsigned long long P)
Definition: count_flip.c:675
static int count_last_flip_A8(const unsigned long long P)
Definition: count_flip.c:1091
static int count_last_flip_F1(const unsigned long long P)
Definition: count_flip.c:208
static int count_last_flip_C6(const unsigned long long P)
Definition: count_flip.c:849
static int count_last_flip_A1(const unsigned long long P)
Definition: count_flip.c:123
static int count_last_flip_H2(const unsigned long long P)
Definition: count_flip.c:378
static int count_last_flip_C4(const unsigned long long P)
Definition: count_flip.c:569
static int count_last_flip_H5(const unsigned long long P)
Definition: count_flip.c:798
static int count_last_flip_B5(const unsigned long long P)
Definition: count_flip.c:692
static int count_last_flip_C1(const unsigned long long P)
Definition: count_flip.c:157
static int count_last_flip_E8(const unsigned long long P)
Definition: count_flip.c:1159
static int count_last_flip_B1(const unsigned long long P)
Definition: count_flip.c:140
static int count_last_flip_C5(const unsigned long long P)
Definition: count_flip.c:709
static int count_last_flip_G7(const unsigned long long P)
Definition: count_flip.c:1057
static int count_last_flip_D8(const unsigned long long P)
Definition: count_flip.c:1142
static int count_last_flip_E6(const unsigned long long P)
Definition: count_flip.c:885
static int count_last_flip_H6(const unsigned long long P)
Definition: count_flip.c:938
static int count_last_flip_B2(const unsigned long long P)
Definition: count_flip.c:276
static int count_last_flip_pass(const unsigned long long P)
Definition: count_flip.c:1227
static int count_last_flip_E5(const unsigned long long P)
Definition: count_flip.c:745
static int count_last_flip_A7(const unsigned long long P)
Definition: count_flip.c:955
static int count_last_flip_H7(const unsigned long long P)
Definition: count_flip.c:1074
static int count_last_flip_D7(const unsigned long long P)
Definition: count_flip.c:1006
static int count_last_flip_B3(const unsigned long long P)
Definition: count_flip.c:412
static int count_last_flip_C7(const unsigned long long P)
Definition: count_flip.c:989
static int count_last_flip_D2(const unsigned long long P)
Definition: count_flip.c:310
static int count_last_flip_E7(const unsigned long long P)
Definition: count_flip.c:1023
static int count_last_flip_A3(const unsigned long long P)
Definition: count_flip.c:395
static int count_last_flip_G8(const unsigned long long P)
Definition: count_flip.c:1193
static int count_last_flip_F6(const unsigned long long P)
Definition: count_flip.c:903
static int count_last_flip_E3(const unsigned long long P)
Definition: count_flip.c:465
static int count_last_flip_G4(const unsigned long long P)
Definition: count_flip.c:641
static int count_last_flip_F5(const unsigned long long P)
Definition: count_flip.c:763
static int count_last_flip_E4(const unsigned long long P)
Definition: count_flip.c:605
static int count_last_flip_B4(const unsigned long long P)
Definition: count_flip.c:552
static int count_last_flip_F8(const unsigned long long P)
Definition: count_flip.c:1176
static int count_last_flip_H4(const unsigned long long P)
Definition: count_flip.c:658
static int count_last_flip_A6(const unsigned long long P)
Definition: count_flip.c:815
static int count_last_flip_F2(const unsigned long long P)
Definition: count_flip.c:344
static int count_last_flip_D4(const unsigned long long P)
Definition: count_flip.c:587
static int count_last_flip_D1(const unsigned long long P)
Definition: count_flip.c:174
static int count_last_flip_F7(const unsigned long long P)
Definition: count_flip.c:1040
static int count_last_flip_B7(const unsigned long long P)
Definition: count_flip.c:972
static int count_last_flip_G6(const unsigned long long P)
Definition: count_flip.c:921
static int count_last_flip_E2(const unsigned long long P)
Definition: count_flip.c:327
static int count_last_flip_H8(const unsigned long long P)
Definition: count_flip.c:1210
static int count_last_flip_G2(const unsigned long long P)
Definition: count_flip.c:361
static int count_last_flip_C8(const unsigned long long P)
Definition: count_flip.c:1125
static int count_last_flip_A2(const unsigned long long P)
Definition: count_flip.c:259
static int count_last_flip_B6(const unsigned long long P)
Definition: count_flip.c:832
static int count_last_flip_D3(const unsigned long long P)
Definition: count_flip.c:447
static int count_last_flip_C2(const unsigned long long P)
Definition: count_flip.c:293

Array of functions to count flipped discs of the last move