1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

uliGo

Posted by nunia on Jun 13, 2007

I wonder how difficult would it be to call uligo python scripts from nodebox?
I want to turn .sgf (simple go format) files into little animations with selective go board images , speaking one of the use cases...


 
Posted by fdb on Jun 14, 2007

uliGo seems to be tightly coupled to Tkinter, which makes it hard to uncouple. The parts that you would need seem to be:
sgfparser.py: for reading in SGF files. This has no requirements. Here's an example of reading in an SGF file:

import sgfparser
sgf_data = open('sgf/easy.sgf').read()
c = sgfparser.Cursor(sgf_data)
Code that draws this SGF file seems to be completely coupled to Tkinter. You could extract most of the parts from the App.setup method (in uligo.py) and the Board.drawBoard method (in board1.py).

Again, this is not as easy as just writing another drawer class (as I expected it to be), but with a lot of work it might be possible. Let me know if you have something.

Kind regards,

Frederik



Posted by nunia on Jun 25, 2007

Frederik, unfortunately i don't do programming at that level. Thanks for your comment. I managed to make this video clip of Go Seigen vs. Naoki 9x9 game in 1968 . The end game result is still a bit puzzling to me in the left lower corner..white and black are interwined so strange that I couldn't tell either group is dead or alive...