Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoGame.cpp File Reference


Detailed Description

See GoGame.h.

Definition in file GoGame.cpp.

#include "SgSystem.h"
#include "GoGame.h"
#include "GoBoardUtil.h"
#include "GoInit.h"
#include "GoPlayer.h"
#include "SgNode.h"
#include "SgNodeUtil.h"
#include "SgProp.h"
#include "SgSearchStatistics.h"
#include "SgUtil.h"

Go to the source code of this file.

Functions

void AddStatisticsToNode (const SgSearchStatistics *stat, SgNode *node)
void AddHandicap (int size, int row, int col, int *handicap, SgVector< SgPoint > *stones)
 Add up to 4 handicap stones to '*stones', and reduce '*handicap' by that amount.
bool GoGameUtil::GotoBeforeMove (GoGameRecord *game, int moveNumber)
 Goto last node in main variation before move number.


Function Documentation

void @7::AddHandicap ( int  size,
int  row,
int  col,
int *  handicap,
SgVector< SgPoint > *  stones 
) [static]

Add up to 4 handicap stones to '*stones', and reduce '*handicap' by that amount.

Definition at line 39 of file GoGame.cpp.

References SgPointUtil::Pt(), SgVector< T >::PushBack(), and SG_ASSERT.

Referenced by GoGameRecord::OnInitHandicap().

void @7::AddStatisticsToNode ( const SgSearchStatistics stat,
SgNode node 
) [static]

Definition at line 27 of file GoGame.cpp.

References SgNode::Add(), SgSearchStatistics::DepthReached(), SgSearchStatistics::NumEvals(), SgSearchStatistics::NumNodes(), SG_PROP_MAX_DEPTH, SG_PROP_NUM_LEAFS, SG_PROP_NUM_NODES, SG_PROP_TIME_USED, and SgSearchStatistics::TimeUsed().

Referenced by GoGameRecord::AddMove().


17 Jun 2010 Doxygen 1.4.7