gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] improved stabilisation in get_next_move_from_list


From: Gunnar Farneback
Subject: Re: [gnugo-devel] improved stabilisation in get_next_move_from_list
Date: Wed, 23 Oct 2002 20:49:43 +0200
User-agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode)

Teun wrote:
> This patch replaces the third stabilisation criterion
> in get_next_move_from_list by a orientation independent
> criterion
> 
> The original criterion is based on the move itself:
> 
> && list->pattern_list[bottom].move < top_move))
> 
> The new criterion is based on the distance to the center of the board:
> 
> && bdist(list->pattern_list[bottom].move) < top_dist))

What effects does this have on the performance?

> +static double bdist(int move);
> +static double bdist(int move)
> +{

There's no requirement to have a forward declaration if the function
is not referenced before it's defined and it's pointless to have the
declaration immediately before the definition. In this case I see no
advantage in having a forward declaration at all.

I suppose you didn't really intend the function to return a double.

/Gunnar




reply via email to

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