bug-gnubg
[Top][All Lists]
Advanced

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

[Bug-gnubg] Problems with import of oldfibs files


From: Jim Segrave
Subject: [Bug-gnubg] Problems with import of oldfibs files
Date: Thu, 30 Oct 2003 00:53:12 +0100
User-agent: Mutt/1.4.1i

While looking into the many reaons gnubg won't import a user's fibs
log, I found the following:

gnubg expects a game to start with a score line:

score %d-%d in a %d ...

I don't know if this is a valid prerequisite.

A worse problem is that import.c calls CanonicalMoveOrder() to process
the listed moves. This works well for player 1, whose moves are from
high numbers to low, it doesn't work for player 0, whose moves are
from low numbers to high. A specific case is a valid move:

19/18 18/off, which became anMovep[] = { 17, -1, 18, 17, -1, -1, -1, -1}

which was not a legal move, as the 18 point was
empty. CanonicalMoveOrder needs to be given a direction flag to allow
it to sort the moves into the correct order.

-- 
Jim Segrave           address@hidden





reply via email to

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