My Project
Macros | Typedefs | Enumerations | Variables
const.h File Reference

Go to the source code of this file.

Macros

#define MAX_THREADS   64
 
#define MAX_MOVE   32
 
#define BOARD_SIZE   64
 
#define GAME_SIZE   80
 
#define SCORE_INF   127
 
#define SCORE_MIN   -64
 
#define SCORE_MAX   64
 
#define TIME_MAX   31557600000000LL
 
#define HOUR   3600000LL
 
#define MAX_OBSERVER   2
 
#define VERSION   4
 
#define RELEASE   4
 
#define VERSION_STRING   "4.4"
 
#define EDAX_NAME   "Edax 4.4"
 
#define BOOK   0x424f4f4b
 
#define EDAX   0x45444158
 
#define EVAL   0x4556414c
 
#define XADE   0x58414445
 
#define LAVE   0x4c415645
 
#define BESTPATH_BEST   128
 

Typedefs

typedef enum Stop Stop
 
typedef enum PlayState PlayState
 

Enumerations

enum  {
  A1 , B1 , C1 , D1 ,
  E1 , F1 , G1 , H1 ,
  A2 , B2 , C2 , D2 ,
  E2 , F2 , G2 , H2 ,
  A3 , B3 , C3 , D3 ,
  E3 , F3 , G3 , H3 ,
  A4 , B4 , C4 , D4 ,
  E4 , F4 , G4 , H4 ,
  A5 , B5 , C5 , D5 ,
  E5 , F5 , G5 , H5 ,
  A6 , B6 , C6 , D6 ,
  E6 , F6 , G6 , H6 ,
  A7 , B7 , C7 , D7 ,
  E7 , F7 , G7 , H7 ,
  A8 , B8 , C8 , D8 ,
  E8 , F8 , G8 , H8 ,
  PASS , NOMOVE
}
 
enum  { BLACK = 0 , WHITE , EMPTY , OFF_SIDE }
 
enum  Stop {
  RUNNING = 0 , STOP_PARALLEL_SEARCH , STOP_PONDERING , STOP_TIMEOUT ,
  STOP_ON_DEMAND , STOP_END
}
 
enum  NodeType { PV_NODE , CUT_NODE , ALL_NODE }
 
enum  PlayState { IS_WAITING , IS_PONDERING , IS_ANALYZING , IS_THINKING }
 
enum  {
  UI_NONE = 0 , UI_CASSIO , UI_EDAX , UI_GGS ,
  UI_GTP , UI_NBOARD , UI_XBOARD , UI_LIBEDAX
}
 

Variables

const unsigned long long X_TO_BIT []
 
const unsigned long long NEIGHBOUR []
 

Detailed Description

Constants as macros, enums, or global consts.

Date
1998 - 2017
Author
Richard Delorme
Version
4.4

Macro Definition Documentation

◆ BESTPATH_BEST

#define BESTPATH_BEST   128

◆ BOARD_SIZE

#define BOARD_SIZE   64

size of the board

◆ BOOK

#define BOOK   0x424f4f4b

◆ EDAX

#define EDAX   0x45444158

◆ EDAX_NAME

#define EDAX_NAME   "Edax 4.4"

◆ EVAL

#define EVAL   0x4556414c

◆ GAME_SIZE

#define GAME_SIZE   80

size of the game including passing moves. We use here an arbitrary big enough value

◆ HOUR

#define HOUR   3600000LL

1 hour

◆ LAVE

#define LAVE   0x4c415645

◆ MAX_MOVE

#define MAX_MOVE   32

maximal number of moves

◆ MAX_OBSERVER

#define MAX_OBSERVER   2

observers

◆ MAX_THREADS

#define MAX_THREADS   64

maximal number of threads

◆ RELEASE

#define RELEASE   4

◆ SCORE_INF

#define SCORE_INF   127

infinite score: a huge value unreachable as a score and fitting in a char

◆ SCORE_MAX

#define SCORE_MAX   64

maximal score

◆ SCORE_MIN

#define SCORE_MIN   -64

minimal score

◆ TIME_MAX

#define TIME_MAX   31557600000000LL

maximal time (1 millenium)

◆ VERSION

#define VERSION   4

◆ VERSION_STRING

#define VERSION_STRING   "4.4"

◆ XADE

#define XADE   0x58414445

Typedef Documentation

◆ PlayState

typedef enum PlayState PlayState

Edax state.

◆ Stop

typedef enum Stop Stop

constants for search interruption

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

constants for square coordinates

Enumerator
A1 
B1 
C1 
D1 
E1 
F1 
G1 
H1 
A2 
B2 
C2 
D2 
E2 
F2 
G2 
H2 
A3 
B3 
C3 
D3 
E3 
F3 
G3 
H3 
A4 
B4 
C4 
D4 
E4 
F4 
G4 
H4 
A5 
B5 
C5 
D5 
E5 
F5 
G5 
H5 
A6 
B6 
C6 
D6 
E6 
F6 
G6 
H6 
A7 
B7 
C7 
D7 
E7 
F7 
G7 
H7 
A8 
B8 
C8 
D8 
E8 
F8 
G8 
H8 
PASS 
NOMOVE 

◆ anonymous enum

anonymous enum

constants for colors

Enumerator
BLACK 
WHITE 
EMPTY 
OFF_SIDE 

◆ anonymous enum

anonymous enum

Type of User Interface

Enumerator
UI_NONE 
UI_CASSIO 
UI_EDAX 
UI_GGS 
UI_GTP 
UI_NBOARD 
UI_XBOARD 
UI_LIBEDAX 

◆ NodeType

enum NodeType

node type

Enumerator
PV_NODE 
CUT_NODE 
ALL_NODE 

◆ PlayState

enum PlayState

Edax state.

Enumerator
IS_WAITING 
IS_PONDERING 
IS_ANALYZING 
IS_THINKING 

◆ Stop

enum Stop

constants for search interruption

Enumerator
RUNNING 
STOP_PARALLEL_SEARCH 
STOP_PONDERING 
STOP_TIMEOUT 
STOP_ON_DEMAND 
STOP_END 

Variable Documentation

◆ NEIGHBOUR

const unsigned long long NEIGHBOUR[]
extern

Conversion array: neighbour bits

◆ X_TO_BIT

const unsigned long long X_TO_BIT[]
extern

coordinate to bit table converter