[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Checker/Cube annotation + suggestion
From: |
Jim Segrave |
Subject: |
Re: [Bug-gnubg] Checker/Cube annotation + suggestion |
Date: |
Mon, 8 Sep 2003 18:58:47 +0200 |
User-agent: |
Mutt/1.4.1i |
On Mon 08 Sep 2003 (10:18 -0300), Albert Silver wrote:
>
> One suggestion/request as this was one of the ideas behind the GUI's
> organization: would it be possible to activate the text annotation area
> *while* playing so that I might write my notes during the match? This
> way I could write down my thoughts for a decision when making it, and
> later, when the analysis was done, I could compare my thoughts with the
> bot's results. I could include estimates on possible doubles I perceived
> and say why I thought of doubling and didn't, or why I thought doubling
> was a good idea. I could even estimate how big an error it would be and
> see how close I was to the truth, etc. All in all, it would be a very
> useful, instructive feature.
That would be a useful feature and it's one I've though about a couple
of times.
The reason you can't at the moment is that until you have a move
record, there's no place to store the commentary. You don't create a
move record until there's a move to record.
But if we created a moverecord before letting the user take a cube
action or roll the dice (and filled in the details after - there's
some interesting extra work needed, then we should get:
1) a place to store hint results -
2) a place to store commentary
Suppose there was a permanent movenormal record, with the current
board and position ID, empty dice roll, move, analysis etc. (basically
re-initialise it before each move.
switch move-type {
case resign:
create a resign record
copy any analysis and commentary from the permanent movenormal
record
add resign record to game list
break
case take:
case beaver:
create a take/beaver record and link to the double record
if the double record has no analysis, copy any analysis from
the permanent movenormal record
append any commentary in the movenormal record to the
commentary in the double record
add take record to game list
break
case double
create a double record
copy any analysis and commentary from the permanent
movenormal
record
add resign record to game list
break
cae move-normal
malloc a move normal record, memcpy the permanent record
add resign record to game list
break
}
reinitialise the permanent record
--
Jim Segrave address@hidden