bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] editing positions in cli


From: Joern Thyssen
Subject: Re: [Bug-gnubg] editing positions in cli
Date: Sat, 29 Nov 2003 17:37:46 +0000
User-agent: Mutt/1.4.1i

On Sat, Nov 29, 2003 at 05:14:55PM +0100, Achim Mueller wrote
> Hi again,
> 
> saturday, girlfriend busy, time for gnubg and a lot of questions
> ;-).
> 
> Editing a position in cli seems to be nearly impossible. I just had
> the idea about an interface (q/a) for setting up new positions (i.e.
> in python) to get match- and position-id. 

I assume you can't do the bit shifts and base64 encoding in your head to
calculate the match and position IDs? :-)

> Something like
> 
> match or money? ma
> match to      13
> score player 0        5
> score player 1        6
> cube owner    0
> cube value    2
> on roll               0
> cube decision 0
> roll          32
> chequers 0 25 0 (or perhaps positive value for 0, negative for 1?)
> chequers 0 24 2 (like chequers 25 1, chequers 24 -2 ...)
> chequers 0 23 0
> chequers 0 22 1
> ...
> chequers 1 24 2
> ...
> (show board)
> setup this match- position-id (y/n) y
> 
> Difficult to implement?

It's already implemented:

new match 13
set score 5 6
set cube owner 0
set cube value 2
set turn 0
set dice 32
set board simple 0  2 2 2 3 3 3  0 0 0 0 0 0  0 0 0 0 0 0 0  -3 -3 -3 -2 -2 -2  0

Jørn

Attachment: pgpktP8zSdmKi.pgp
Description: PGP signature


reply via email to

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