Skip to content

emdio/GnugoAnalyse

Repository files navigation

This group of scripts read the sgf files sent to [email protected], analyse them
wtih the help of gnugo and send the result of the analysis to the original email address.

SGF are "smart game format", a file format to store Go records: http://senseis.xmp.net/?SmartGameFormat

Gnugo is a free software Go engine: https://en.wikipedia.org/wiki/GNU_Go

A json file is needed with the info:
{
  "user": "[email protected]",
  "pwd": "password"
}


Important folders:
-attachments: the folder where the original sgf files are downloaded
-tmp: the folder where the analysed files are stored during the analysis process
-analysed: the folder where finally the analysed files are stored
-sent: where the analysed files are finally placed after they are sent to their
original senders

Scripts:
-downloadSgfAttached.py: downloads the attached files and stores them in /attachments.
It also populates the data_file.txt with the next format:
one_sgf_file [email protected]
another_sgf_file [email protected]
-analyseSgfFiles.py: uses the sgf files in /attachments and analyse them, just one per
time, no matter how many sgf files there are, in order to not to overload the cpu. It
leaves the result of the analysis in /analysed
-sendGmailAttachment.py: it takes the files in /analysed and with the info stored in
data_file.txt sends an email with the analysed files attached

Known issues:
-The "subject" field remains empty when the email with the analysed game is received
-Folders analysed, attachments, tmp and sent must be created before launching the scripts
-Only for linux based systems (makes use of linux commands like 'ps')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages