ow_aisearch Class Reference

#include <ow_aisearch.h>

Inheritance diagram for ow_aisearch:

ow_aisearch_alphabeta ow_aisearch_negamax ow_aisearch_scout ow_aisearch_simple

List of all members.

Public Member Functions

 ow_aisearch (ow_board *owboard)
virtual int search (ow_move prinvar[], ow_board *board, int boardside, int depth)
void setevalfunc (int idfunct)
virtual ~ow_aisearch ()

Protected Attributes

ow_boardowboard
int(* evalfunct )(ow_board *owboard, int boardside)


Detailed Description

Author:
David Torres <aiken669@gmail.com>

Constructor & Destructor Documentation

ow_aisearch::ow_aisearch ( ow_board owboard  ) 

Creates a new ow_aisearch object width default values.

Parameters:
owboard Pointer to the board used during the game, where to look for moves.
Returns:
New ow_aisearch object.

ow_aisearch::~ow_aisearch (  )  [virtual]

Deletes the ow_aisearch object


Member Function Documentation

int ow_aisearch::search ( ow_move  prinvar[],
ow_board board,
int  boardside,
int  depth 
) [virtual]

Virtual method implemented by derived clases. Starts or continues a search for the best position to move in that boardside.

Parameters:
prinvar Principal variation found during the IA search.
board Pointer to the board.
boardside Side of the board where to look for best move.
depth Depth of the search algoritm
Returns:
-1 if not found yet, >=0 if best move found, also it is the max eval value.

Reimplemented in ow_aisearch_alphabeta, ow_aisearch_negamax, ow_aisearch_scout, and ow_aisearch_simple.

void ow_aisearch::setevalfunc ( int  idfunct  ) 

Sets the evaluation function to be used by the aisearch algoritm.

Parameters:
idfunct Selected function id (AI_RANDOM_FUNC)


The documentation for this class was generated from the following files:
Generated on Sun Jun 22 13:45:47 2008 for Omweso by  doxygen 1.5.3