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 _______________________________________________ Bug-gnubg mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-gnubg
