bug-gnubg
[Top][All Lists]
Advanced

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

[Bug-gnubg] Python function movetupletostring committed to revision cont


From: Michael Petch
Subject: [Bug-gnubg] Python function movetupletostring committed to revision control / Windows test executables created.
Date: Thu, 25 Oct 2012 17:17:29 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

Howdy Bagrat,

I have committed a new Python function movetupletostring to the code
base. It doesn't check for the legality of the move specified given the
board, but will return the string representation of the move tuple
specified. If you specify a tuple that is less than 8 elements it will
assume the missing values are zero. An empty tuple, or tuple with more
than 8 elements will return an error.

It is a python wrapper around the internal function FormatMoves. I have
created a test version of the executables here:

http://www.capp-sysware.com/downloads/gnubg-cliTEST20121025.exe
http://www.capp-sysware.com/downloads/gnubgTEST20121025.exe

The first is a CLI replacement and the second is the GUI replacement.

After creating this function I almost wondered if we should have a
ismovelegal function that takes a board, dice, and move returning a boolean.

Let me know if you have problems.
-- 
Michael Petch
CApp::Sysware Consulting Ltd.
OpenPGP FingerPrint=D81C 6A0D 987E 7DA5 3219 6715 466A 2ACE 5CAE 3304





reply via email to

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