SimplePlayout Class Reference

Simple playout. More...

#include <uct.h>

Inheritance diagram for SimplePlayout:

AdvisorPlayout

List of all members.

Public Member Functions

 SimplePlayout (Board *, uint maxPlayoutLength, uint evalAfterLength)
 Constructor with board initialization.
playoutStatus_e doPlayout ()
 Performs whole playout.
uint getPlayoutLength ()
 Returns playout length in moves.

Protected Member Functions

virtual void playOne ()
 Performs one move of one player.
bool hasWinner ()
 Wrapper around get winner from board.

Protected Attributes

Boardboard_
 Board for playout.
uint playoutLength_
 Actual length of the playout.
uint maxPlayoutLength_
 Maximal length - if tresspased playout is invalid.
uint evalAfterLength_
 How deep perform the evaluation.


Detailed Description

Simple playout.

Performs (pseudo)random playout from position given in constructor. Playout returns playout status.


Member Function Documentation

playoutStatus_e SimplePlayout::doPlayout (  ) 

Performs whole playout.

Consists of repetitive calls to playOne().

Returns:
Final playout status.

void SimplePlayout::playOne (  )  [protected, virtual]

Performs one move of one player.

Implements random step play to get the move.

Reimplemented in AdvisorPlayout.


Member Data Documentation

Board for playout.

How deep perform the evaluation.

Maximal length - if tresspased playout is invalid.

Actual length of the playout.


The documentation for this class was generated from the following files:

Generated on Thu Aug 6 23:29:09 2009 for akimot by  doxygen 1.5.7.1