Oh, this board is just the starting. Need an UI, to move stones (pygtk) and reading a file with an inbetween game to setup the board.
And someone looking at my code and maybe with suggestions to do this or that more clever ;-)
Peter
the history lines of the guides look like this (this morning)
'[];[]'
"[150, 350, 550, 750, 950];[50, 250, 450, 650, 850]"
"[50, 250, 450, 650, 850];[50, 250, 450, 650, 850]" (wrong one replaced by next line)
"[50, 250, 450, 650, 850];[150, 350, 550, 750, 950]"
"[50, 250];[150, 350, 550, 750, 950]"
"[150, 350];[50, 250, 450, 650, 850]"
"[750, 950];[50, 250, 450, 650, 850]"
"[650, 850];[150, 350, 550, 750, 950]"
first lists are horizontal guides values, second vertical ones.
The last four are used to put black resp. white stones at their starting position
The first two are used to fill the board all ' dark brown fields.
Meaning, that a an inbetween broken game recorded as:
Attachment:
IMG_3149_klein.jpg [ 88.93 KiB | Viewed 7866 times ]
Need some (helping) ideas ...