[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] function in influence.c not in liberty.h

From: bump
Subject: Re: [gnugo-devel] function in influence.c not in liberty.h
Date: Sat, 15 May 2004 08:09:07 -0700

> I noticed some functions in influence.c are not in liberty.h.
> such as:
> static float
> influence_evaluate_position(int color, float *power, float *game_status)

Not if it is declared static. Any function declared static is only
visible in the file where it is defined. Since it cannot be declared
globally it is not declared in liberty.h or gnugo.h.

> Also this function and another function
> float influence_score(const struct influence_data *q);
> Will they both return the samething - a floating number to indicate the
> TOTAL territory on the entire board? If so, + number means WHITE is ahead,
> - number means BLACK is ahead, I assume.
> I didn't find any documentation on either functions in the .ps gnugo 3.4
> doc.

A description of the functions is contained in the source
just before the function. Note that the static function
influence_evaluate_position() in addition to returning a
float also returns some information through the
parameters power and game_status.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]