Richard Rognlie wrote:
"Add stone" could be used, but when the game would be replayed by an SGF viewer, there would be no real "move tree" - everything would be counted as "game setup." In addition, since setup is just stone placement, and not actual play, there would be no captures.in the pbmserv hierarchy, gomoku is one of the simplist possible 2-D games (add a stone to a 2d board... has someone won?... lather-rinse-repeat) Go, Pente, et al, add the idea of capture to the placement of the stone. That's why Gomoku is the base class for so many other games. So... for Gomoku, you'd change the Go "move" ;B[xy] to a simpler "add stone" ;AB[xy] From the SGF documentation, here are the respective specs: Property: B Propvalue: move Propertytype: move Function: Execute a black move. This is one of the most used properties in actual collections. As long as the given move is syntactically correct it should be executed. It doesn't matter if the move itself is illegal (e.g. recapturing a ko in a Go game). Have a look at how to execute a Go-move. B and W properties must not be mixed within a node. Related: W, KO ----- Property: AB Propvalue: list of stone Propertytype: setup Function: Add black stones to the board. This can be used to set up positions or problems. Adding is done by 'overwriting' the given point with black stones. It doesn't matter what was there before. Adding a stone doesn't make any prisoners nor any other captures (e.g. suicide). Thus it's possible to create illegal board positions. Points used in stone type must be unique. Related: AW, AE, PL I don't know how you'd tell it to do Pente stuff (add a stone that removes N other stones... I can't find a list of GM settings. (other than this) * Go (GM[1]) * Backgammon (GM[6]) * Lines of Action (GM[9]) * Hex (GM[11]) * Amazons (GM[18]) * Octi (GM[19]) * Gess (GM[20]) * Twixt (GM[21]) Property: GM Propvalue: number (range: 1-16) Propertytype: root Function: Defines the type of game, which is stored in the current gametree. The property should help applications to reject games, they cannot handle. Valid numbers are: Go = 1, Othello = 2, chess = 3, Gomoku+Renju = 4, Nine Men's Morris = 5, Backgammon = 6, Chinese chess = 7, Shogi = 8, Lines of Action = "" Ataxx = 10, Hex = 11, Jungle = 12, Neutron = 13, Philosopher's Football = 14, Quadrature = 15, Trax = 16, Tantrix = 17, Amazons = 18, Octi = 19, Gess = 20, Twixt = 21, Zertz = 22, Plateau = 23. Default value: 1 Different kind of games may appear within a collection. Related: FF, SZ, ST, AP, CA Great! Thanks. Is it actually in place on the server? I tried "go sgf 2072" and have not received any response at all (not even an error) after more than 15 minutes. Just to be sure, I also tried "go -sgf 2083" which produced an "unknown command" error, and "go sgf 2101" which, as with the first test, produced nothing.Installed and working. I was able to download both a Go match and a Gonnect match... no problem. Cut-n-pasted the sgf text into a file and loaded it into a SGF viewer (qGo)... worked great. Good point. Will do.You might want to add a game ID(entifier) [aka the board number] to go along with the PC, PB and PW entries you have to show which board you're looking at (yes, I know it's in the Subject, but the SGF viewer doesn't see the subject). That's the way I wanted to do it, but wasn't too sure about the MIME stuff. I'll give it a try.it might be nice if the sgf file was an attachment, but that'll require MIME trickery when printing the data out. Should be doable though. Something like... Thanks again! |