GoStrengths

Name

GoStrengths -- A controller to estimate the players' strength values

Synopsis


#include <go-strengths.h>


struct      GoStrengths;
GtkObject*  go_strengths_new                (GoData *data,
                                             gboolean optimize_constants);
double      go_strengths_probability        (GoStrengths *self,
                                             GoGame *g);
int         go_strengths_find_handicap      (GoStrengths *self,
                                             GoPlayer *black,
                                             GoPlayer *white,
                                             GoBoardSize board);
double      go_strengths_find_komi          (GoStrengths *self,
                                             GoPlayer *black,
                                             GoPlayer *white,
                                             GoBoardSize board,
                                             int hc);
void        go_strengths_optimize           (GoStrengths *self);
void        go_strengths_parameters_print   (GoStrengths *self);
const char* go_strengths_check_preconditions
                                            (GoStrengths *self);

Object Hierarchy


  GtkObject
   +----GoClient
         +----GoStrengths

Description

Details

struct GoStrengths

struct GoStrengths {
	double s19;
	double s13;
	double s9;
	double h19;
	double h13;
	double h9;
	double k19;
	double k13;
	double k9;
	double e19;
	double e13;
	double e9;
};


go_strengths_new ()

GtkObject*  go_strengths_new                (GoData *data,
                                             gboolean optimize_constants);

Allocate a new GoStrength object and connect it to data.

data : a GoData object
optimize_constants : try to estimate some internal constants, too. This needs a lot of game data to give reasonable results.
Returns : the new object.


go_strengths_probability ()

double      go_strengths_probability        (GoStrengths *self,
                                             GoGame *g);

Use the player data from the GoStrengths object self, to assign a probability to the outcome of game g. This modifies the g->probability field.

self : a GoStrengths object
g : a GoGame to evaluate
Returns : the probability that the given outcome of g occurs


go_strengths_find_handicap ()

int         go_strengths_find_handicap      (GoStrengths *self,
                                             GoPlayer *black,
                                             GoPlayer *white,
                                             GoBoardSize board);

self : 
black : 
white : 
board : 
Returns : 


go_strengths_find_komi ()

double      go_strengths_find_komi          (GoStrengths *self,
                                             GoPlayer *black,
                                             GoPlayer *white,
                                             GoBoardSize board,
                                             int hc);

self : 
black : 
white : 
board : 
hc : 
Returns : 


go_strengths_optimize ()

void        go_strengths_optimize           (GoStrengths *self);

self : 


go_strengths_parameters_print ()

void        go_strengths_parameters_print   (GoStrengths *self);

self : 


go_strengths_check_preconditions ()

const char* go_strengths_check_preconditions
                                            (GoStrengths *self);

self : 
Returns :