My Project
Functions | Variables
flip_roxane.c File Reference
#include "bit.h"

Functions

static unsigned long long flip_A1 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_B1 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_C1 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_D1 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_E1 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_F1 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_G1 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_H1 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_A2 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_B2 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_C2 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_D2 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_E2 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_F2 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_G2 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_H2 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_A3 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_B3 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_C3 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_D3 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_E3 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_F3 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_G3 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_H3 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_A4 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_B4 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_C4 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_F4 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_G4 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_H4 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_A5 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_B5 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_C5 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_F5 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_G5 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_H5 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_A6 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_B6 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_C6 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_D6 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_E6 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_F6 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_G6 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_H6 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_A7 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_B7 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_C7 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_D7 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_E7 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_F7 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_G7 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_H7 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_A8 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_B8 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_C8 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_D8 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_E8 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_F8 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_G8 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_H8 (const unsigned long long discs_player, const unsigned long long discs_opponent)
 
static unsigned long long flip_pass (const unsigned long long P, const unsigned long long O)
 

Variables

unsigned long long(* flip [])(const unsigned long long, const unsigned long long)
 

Detailed Description

Copied and adapted from Roxane by Bruno Causse.

Note: Square Notation is inverted compared to Edax's one.

Date
1998 - 2017
Author
Richard Delorme, Bruno Causse, Stéphane Nicolet
Version
4.4

Function Documentation

◆ flip_A1()

static unsigned long long flip_A1 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_A2()

static unsigned long long flip_A2 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_A3()

static unsigned long long flip_A3 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_A4()

static unsigned long long flip_A4 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_A5()

static unsigned long long flip_A5 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_A6()

static unsigned long long flip_A6 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_A7()

static unsigned long long flip_A7 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_A8()

static unsigned long long flip_A8 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_B1()

static unsigned long long flip_B1 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_B2()

static unsigned long long flip_B2 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_B3()

static unsigned long long flip_B3 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_B4()

static unsigned long long flip_B4 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_B5()

static unsigned long long flip_B5 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_B6()

static unsigned long long flip_B6 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_B7()

static unsigned long long flip_B7 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_B8()

static unsigned long long flip_B8 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_C1()

static unsigned long long flip_C1 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_C2()

static unsigned long long flip_C2 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_C3()

static unsigned long long flip_C3 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_C4()

static unsigned long long flip_C4 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_C5()

static unsigned long long flip_C5 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_C6()

static unsigned long long flip_C6 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_C7()

static unsigned long long flip_C7 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_C8()

static unsigned long long flip_C8 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_D1()

static unsigned long long flip_D1 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_D2()

static unsigned long long flip_D2 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_D3()

static unsigned long long flip_D3 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_D6()

static unsigned long long flip_D6 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_D7()

static unsigned long long flip_D7 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_D8()

static unsigned long long flip_D8 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_E1()

static unsigned long long flip_E1 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_E2()

static unsigned long long flip_E2 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_E3()

static unsigned long long flip_E3 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_E6()

static unsigned long long flip_E6 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_E7()

static unsigned long long flip_E7 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_E8()

static unsigned long long flip_E8 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_F1()

static unsigned long long flip_F1 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_F2()

static unsigned long long flip_F2 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_F3()

static unsigned long long flip_F3 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_F4()

static unsigned long long flip_F4 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_F5()

static unsigned long long flip_F5 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_F6()

static unsigned long long flip_F6 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_F7()

static unsigned long long flip_F7 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_F8()

static unsigned long long flip_F8 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_G1()

static unsigned long long flip_G1 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_G2()

static unsigned long long flip_G2 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_G3()

static unsigned long long flip_G3 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_G4()

static unsigned long long flip_G4 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_G5()

static unsigned long long flip_G5 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_G6()

static unsigned long long flip_G6 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_G7()

static unsigned long long flip_G7 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_G8()

static unsigned long long flip_G8 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_H1()

static unsigned long long flip_H1 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_H2()

static unsigned long long flip_H2 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_H3()

static unsigned long long flip_H3 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_H4()

static unsigned long long flip_H4 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_H5()

static unsigned long long flip_H5 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_H6()

static unsigned long long flip_H6 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_H7()

static unsigned long long flip_H7 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_H8()

static unsigned long long flip_H8 ( const unsigned long long  discs_player,
const unsigned long long  discs_opponent 
)
static

◆ flip_pass()

static unsigned long long flip_pass ( const unsigned long long  P,
const unsigned long long  O 
)
static

Variable Documentation

◆ flip

unsigned long long(* flip[])(const unsigned long long, const unsigned long long) ( const unsigned long long  ,
const unsigned long long   
)
Initial value:
= {
}
static unsigned long long flip_A3(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:600
static unsigned long long flip_C6(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1625
static unsigned long long flip_E7(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2047
static unsigned long long flip_pass(const unsigned long long P, const unsigned long long O)
Definition: flip_roxane.c:2483
static unsigned long long flip_A5(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1251
static unsigned long long flip_C3(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:674
static unsigned long long flip_G2(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:538
static unsigned long long flip_E8(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2337
static unsigned long long flip_C4(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1045
static unsigned long long flip_B3(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:637
static unsigned long long flip_H6(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1865
static unsigned long long flip_D1(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:115
static unsigned long long flip_E2(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:454
static unsigned long long flip_G3(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:877
static unsigned long long flip_H1(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:277
static unsigned long long flip_D3(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:720
static unsigned long long flip_D8(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2291
static unsigned long long flip_D7(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2001
static unsigned long long flip_B5(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1298
static unsigned long long flip_G6(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1828
static unsigned long long flip_E1(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:161
static unsigned long long flip_F5(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1401
static unsigned long long flip_F1(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:207
static unsigned long long flip_A2(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:308
static unsigned long long flip_F3(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:831
static unsigned long long flip_F8(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2383
static unsigned long long flip_H4(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1204
static unsigned long long flip_B7(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1933
static unsigned long long flip_C2(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:370
static unsigned long long flip_D6(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1672
static unsigned long long flip_G4(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1157
static unsigned long long flip_C7(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1964
static unsigned long long flip_F7(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2093
static unsigned long long flip_E3(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:775
static unsigned long long flip_C1(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:77
static unsigned long long flip_A8(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2192
static unsigned long long flip_G1(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:246
static unsigned long long flip_A7(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1902
static unsigned long long flip_C8(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2254
static unsigned long long flip_F6(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1782
static unsigned long long flip_H5(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1504
static unsigned long long flip_H7(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2161
static unsigned long long flip_D2(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:408
static unsigned long long flip_A1(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:15
static unsigned long long flip_B2(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:339
static unsigned long long flip_E6(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1727
static unsigned long long flip_B1(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:46
static unsigned long long flip_B6(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1588
static unsigned long long flip_G7(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2130
static unsigned long long flip_H3(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:914
static unsigned long long flip_G5(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1457
static unsigned long long flip_C5(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1345
static unsigned long long flip_F2(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:500
static unsigned long long flip_B8(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2223
static unsigned long long flip_A6(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1551
static unsigned long long flip_H2(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:569
static unsigned long long flip_F4(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:1101
static unsigned long long flip_H8(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2452
static unsigned long long flip_B4(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:998
static unsigned long long flip_G8(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:2421
static unsigned long long flip_A4(const unsigned long long discs_player, const unsigned long long discs_opponent)
Definition: flip_roxane.c:951

Array of functions to compute flipped discs