[Top][All Lists]

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

Re: [gnugo-devel] regress.pike uncertainty patch

From: Gunnar Farnebäck
Subject: Re: [gnugo-devel] regress.pike uncertainty patch
Date: Mon, 24 May 2004 03:50:45 +0200
User-agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.3 (sparc-sun-solaris2.9) MULE/5.0 (SAKAKI)

Evan wrote:
> This patch adds uncertainty totals to regress.pike.  For any reg_genmove
> command in the tst file, it now follows with a move_uncertainty command
> and keeps a running total.
> [...]
> This is my first attempt at writing pike code, so comments are certainly
> welcome :)

Only one comment.

> +  string temp1, temp2;
> +      if (sscanf(s, "%sreg_genmove%s", temp1, temp2)) {

You can skip the temporary variables and instead use
sscanf(s, "%*sreg_genmove%*s")
This is the same as in C, by the way.


reply via email to

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