Line 346... |
Line 346... |
void aimoves_append(AIMoves *moves, const AIMove *aim);
|
void aimoves_append(AIMoves *moves, const AIMove *aim);
|
#define aimoves_set aimoves_append
|
#define aimoves_set aimoves_append
|
///////////* Add an AIMove to an AIMoves array; existing moves weights will be
|
///////////* Add an AIMove to an AIMoves array; existing moves weights will be
|
////////// overwritten */
|
////////// overwritten */
|
//////////
|
//////////
|
int aimoves_choose(AIMoves *moves, AIMove *move, index_array *index);
|
int aimoves_choose(AIMoves *moves, AIMove *move/*, index_array *index*/);
|
/* Will choose one of the best moves from a GArray of AIMove structures at
|
/* Will choose one of the best moves from a GArray of AIMove structures at
|
random. Returns non-zero if a move was chosen or zero if a move could not
|
random. Returns non-zero if a move was chosen or zero if a move could not
|
be chosen for some reason. */
|
be chosen for some reason. */
|
//////////
|
//////////
|
int aimoves_compare(const void *a, const void *b);
|
int aimoves_compare(const void *a, const void *b);
|
Line 461... |
Line 461... |
///////////
|
///////////
|
///////////AIMoves *ai_utility(const Board *b);
|
///////////AIMoves *ai_utility(const Board *b);
|
///////////AIMoves *ai_dfs_utility(const Board *b);
|
///////////AIMoves *ai_dfs_utility(const Board *b);
|
////////////* Utility function */
|
////////////* Utility function */
|
///////////
|
///////////
|
/*AIMoves **/int ai_threats(Board board[2][16],int depth,int branch,AIMoves moves[2][16],index_array *index);
|
/*AIMoves **/int ai_threats(Board board[2][16],int depth,int branch,AIMoves moves[2][16]/*,index_array *index*/);
|
AIMoves *ai_priority(const Board *b);
|
AIMoves *ai_priority(const Board *b);
|
/* Multi-level threats */
|
/* Multi-level threats */
|
|
|
|
|
|
|
Line 486... |
Line 486... |
PLAYER ai;
|
PLAYER ai;
|
//SEARCH search;
|
//SEARCH search;
|
int depth, branch, cache, tss;
|
int depth, branch, cache, tss;
|
} Player;
|
} Player;
|
/*AIMoves **/int search(Board *board,AIMove *move, Player *player);
|
/*AIMoves **/int search(Board *board,AIMove *move, Player *player);
|
|
AIWEIGHT df_search(Board *b, AIMoves *moves,/*index_array *index,*/ Player *player,int depth, int cache_index,PIECE searched, AIWEIGHT alpha, AIWEIGHT beta);
|
#endif
|
#endif
|
|
|
No newline at end of file
|
No newline at end of file
|