alg1_board.h File Reference

#include "belofte.h"
#include "board.h"

Go to the source code of this file.

Data Structures

struct  st_alg1_board

Defines

#define __ALG1_BOARD_H__
#define BOARDARRAY_SIZE   144
#define COL144TO64(x)   (m1_boardmapper.m_fields[(x)] % 8)
#define ENDPOS   118
#define KINGBLACKSTART   114
#define KINGWHITESTART   30
#define M1_LIJN(x)   ((x) % 8)
#define M1_RIJ(x)   ((x) / 8)
#define MAP144TO64(x)   (m1_boardmapper.m_fields[(x)])
#define ROW144TO64(x)   (m1_boardmapper.m_fields[(x)] / 8)
#define STARTPOS   26

Typedefs

typedef st_alg1_board t_alg1_board

Enumerations

enum  tCastleFlags { CASTLE_LONG = 0, CASTLE_SHORT }

Functions

void apply_moveblack (const posid iFrom, const posid iTo, const t_promotion cFlag)
void apply_movewhite (const posid iFrom, const posid iTo, const t_promotion cFlag)
 pefrom the move no the board and update board statistics


Define Documentation

#define __ALG1_BOARD_H__
 

#define BOARDARRAY_SIZE   144
 

#define COL144TO64  )     (m1_boardmapper.m_fields[(x)] % 8)
 

#define ENDPOS   118
 

#define KINGBLACKSTART   114
 

#define KINGWHITESTART   30
 

#define M1_LIJN  )     ((x) % 8)
 

#define M1_RIJ  )     ((x) / 8)
 

#define MAP144TO64  )     (m1_boardmapper.m_fields[(x)])
 

#define ROW144TO64  )     (m1_boardmapper.m_fields[(x)] / 8)
 

#define STARTPOS   26
 


Typedef Documentation

typedef struct st_alg1_board t_alg1_board
 


Enumeration Type Documentation

enum tCastleFlags
 

Enumerator:
CASTLE_LONG 
CASTLE_SHORT 


Function Documentation

void apply_moveblack const posid  iFrom,
const posid  iTo,
const t_promotion  cFlag
 

void apply_movewhite const posid  iFrom,
const posid  iTo,
const t_promotion  cFlag
 

pefrom the move no the board and update board statistics


Generated on Tue Jan 31 00:14:05 2006 for BelofteDoc by  doxygen 1.4.6