board.c File Reference

#include "belofte.h"
#include "board.h"
#include "alg1_search.h"
#include "alg1_moves.h"
#include "alg1_board.h"

Functions

int board_applymove (const char *szCoordMove)
 apply standard move move entering is a move in the format from-case, to case, attribute will return a code if there is something special about the move applied
int board_getmetadata (const char *szFlag)
 get some statistics about the board, to test threefold position, .
void board_print (void)
int board_sanapplymove (char *szMove, char *szCoordMove)
 apply move in san format for this we first have to make a list of all possible moves and then map the san move to this list
void board_setup (char *szFen)
 setboard function, will initialise by default to this cmd_setboard("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1");
int board_unapplymove (void)
 unapply standard move return false if unapply did not succeed

Variables

int busy_book_creating
int curply
t_alg1_moves m1_movelist
t_board m_board
st_history m_boardhistory [MAX_GAME_LENGTH]

Function Documentation

int board_applymove const char *  szCoordMove  ) 
 

apply standard move move entering is a move in the format from-case, to case, attribute will return a code if there is something special about the move applied

int board_getmetadata const char *  szFlag  ) 
 

get some statistics about the board, to test threefold position, .

.. return 0: no board statistics of any meaning return 1: draw by lack of material

void board_print void   ) 
 

int board_sanapplymove char *  szMove,
char *  szCoordMove
 

apply move in san format for this we first have to make a list of all possible moves and then map the san move to this list

void board_setup char *  szFen  ) 
 

setboard function, will initialise by default to this cmd_setboard("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1");

int board_unapplymove void   ) 
 

unapply standard move return false if unapply did not succeed


Variable Documentation

int busy_book_creating
 

int curply
 

t_alg1_moves m1_movelist
 

t_board m_board
 

struct st_history m_boardhistory[MAX_GAME_LENGTH]
 


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