bug-gnubg
[Top][All Lists]
Advanced

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

[Bug-gnubg] GNUBg Position ID format ?


From: stormen
Subject: [Bug-gnubg] GNUBg Position ID format ?
Date: Mon, 14 Jan 2013 12:35:28 -0800 (PST)

According to the description of the Position ID in the gnubg manual, 
http://www.gnu.org/software/gnubg/manual/html_node/A-technical-description-of-the-Position-ID.html
Position-ID , the first bits in the key describe the checkers for the player
_on_ roll. However, when copying the id from within gnubg, it seems that
after having decoded the bits, the first section of the key actually
describes the checkers for the player not on roll. For example, after
playing an opening 31 by making the fivepoint and the other player being on
roll, and yet to make a move, the position id copied from gnubg is 
    
    sGfwATDgc/ABMA 

Decoding wrt Basde64 the first 16 bits are

    10110000 01100111 

with endianness the first 16 checker bits are then
    
    00001101 11100110

giving 2 checkers on the five point, 4 on the six, 2 on the eight.

Has the format "officially" changed or am I missing something ?

Thanks.
-- 
View this message in context: 
http://old.nabble.com/GNUBg-Position-ID-format---tp34892956p34892956.html
Sent from the Gnu - Backgammon mailing list archive at Nabble.com.




reply via email to

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