bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Where I can find .mat file format description


From: Jim Segrave
Subject: Re: [Bug-gnubg] Where I can find .mat file format description
Date: Tue, 13 Apr 2010 14:55:25 +0200
User-agent: Mutt/1.5.16 (2007-06-09)

On Tue 13 Apr 2010 (10:58 +0400), Sergey Kaluzhskiy wrote:
> Hello
>
> We have Russian cellphone-enabled backgammon game server (jag.mobileap.ru) 
> and want to implement the ablility to export our match logs to .mat file 
> for further analysis in GNU backammon. I googled some time but can't find 
> the description of this format. Could you please help me and say URL where 
> I can find .mat file documentation?

I don't know if this will help, but attached is a python program which
takes a list of moves (from the www.DailyGammon.com website, prodcued
by saving the html page as a .txt file and converts it to a .mat file
which is then passed to gbubg.

Theres a long series of regexes looking for reported actions, each
regex match produces part of the .mat file for input to gnubg.

I've included a sample input file from a partially completed match,
and the .mat file (which gnubg accepts) that results from running the
script.


-- 
Jim Segrave           address@hidden


Attachment: domat.zip
Description: Zip archive


reply via email to

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