Re: [computer-go] sgf standard

2008-08-04 Thread Ray Tayek

At 01:58 PM 7/29/2008, you wrote:

... had a burst of activity
related to the addition of new properties to the standard.

The properties relate to the representation of common subtrees.


i just dusted off an old sgf parser/merger in java. i can eat the 
example file ok.


where are the new properties listed?

are there any example?

thanks

---
vice-chair http://ocjug.org/


___
computer-go mailing list
computer-go@computer-go.org
http://www.computer-go.org/mailman/listinfo/computer-go/


Re: [computer-go] Java SGF Parser

2008-08-04 Thread Stuart A. Yeates
On Mon, Aug 4, 2008 at 12:55 PM, Ross Werner [EMAIL PROTECTED] wrote:
 I'm looking for a nice Java SGF library that allows you to parse SGF files
 into a simple tree, and to serialize your own tree back to SGF. I've looked
 at a few of the open source Go projects currently out there, and I've
 searched the computer-go archives (and even found a post from myself a few
 years back on the subject), but haven't found anything that seems very
 robust.

 So, my question here is twofold:
 1) Does anybody know of a good Java SGF parser out there?
 2) What would your criteria be for a good SGF parser? (e.g. it's more
 important that it's fast than memory-efficient, or vice-versa, or have a
  certain API, or allow for traversing the game tree without holding the
 entire file in memory, etc.)

 If I can't find a good one out there, I may write one myself, probably based
 on JavaCC/SableCC, which I'm somewhat familiar with.

I have what I believe to be a fast JavaCC sgf grammar at:

http://code.google.com/p/jgogears/source/browse/trunk/jgogears/jgogears/SGF/SGF.jj

I am interested in developing it into a fully-functional java bean.

cheers
stuart
___
computer-go mailing list
computer-go@computer-go.org
http://www.computer-go.org/mailman/listinfo/computer-go/


Re: [computer-go] sgf standard

2008-08-04 Thread Stuart A. Yeates
On Mon, Aug 4, 2008 at 6:00 PM, Ray Tayek [EMAIL PROTECTED] wrote:
 At 01:58 PM 7/29/2008, you wrote:

 ... had a burst of activity
 related to the addition of new properties to the standard.

 The properties relate to the representation of common subtrees.

 i just dusted off an old sgf parser/merger in java. i can eat the example
 file ok.

 where are the new properties listed?

http://tech.groups.yahoo.com/group/sgf-std/message/288

Seems to be the best discussion.

 are there any example?

There don't appear to be many good example files yet.

cheers
stuart
___
computer-go mailing list
computer-go@computer-go.org
http://www.computer-go.org/mailman/listinfo/computer-go/


Re: [computer-go] komi for 13x13 and 19x19

2008-08-04 Thread Alain Baeckeroot

Le samedi 2 août 2008, Christoph Birk a écrit :
 
 On Aug 2, 2008, at 10:34 AM, Don Dailey wrote:
  Does it make sense to use a komi of 7.5 for 13x13 and 19x19 under CGOS
  rules?
 
 I don't know about 13x13, but for 19x19 you should use 6.5.
 
Is'nt the komi 6.5 with japanese rules = 7.5 with chinese rules ?
Alain



___
computer-go mailing list
computer-go@computer-go.org
http://www.computer-go.org/mailman/listinfo/computer-go/


Re: [computer-go] Java SGF Parser

2008-08-04 Thread Mark Boon
I have a SGF parser in Java in my library. I haven't updated it in a  
while. You can find the SGF package here:


https://tesujigoframework.dev.java.net/source/browse/ 
tesujigoframework/TesujiGoFramework/source/tesuji/games/sgf/


I think it's pretty efficient and easy to use. For examples look at:

 https://tesujigoframework.dev.java.net/source/browse/ 
tesujigoframework/TesujiGoFramework/source/tesuji/games/go/test/ 
SGFUnitTest.java


It has examples how to parse from a string, a file or how to iterate  
over a large game-collection without keeping everything in memory.  
There's also stuff there to make SGF out of a tree again and more  
such things.


Let me know if it's any use, so far I haven't seen much interest in  
this library. It seems everybody prefers to write their own standard  
stuff.


Mark

On 3-aug-08, at 21:55, Ross Werner wrote:

I'm looking for a nice Java SGF library that allows you to parse  
SGF files into a simple tree, and to serialize your own tree back  
to SGF. I've looked at a few of the open source Go projects  
currently out there, and I've searched the computer-go archives  
(and even found a post from myself a few years back on the  
subject), but haven't found anything that seems very robust.


So, my question here is twofold:
1) Does anybody know of a good Java SGF parser out there?
2) What would your criteria be for a good SGF parser? (e.g. it's  
more important that it's fast than memory-efficient, or vice-versa,  
or have a  certain API, or allow for traversing the game tree  
without holding the entire file in memory, etc.)


If I can't find a good one out there, I may write one myself,  
probably based on JavaCC/SableCC, which I'm somewhat familiar with.


Thanks in advance for any feedback,
~ Ross
___
computer-go mailing list
computer-go@computer-go.org
http://www.computer-go.org/mailman/listinfo/computer-go/


___
computer-go mailing list
computer-go@computer-go.org
http://www.computer-go.org/mailman/listinfo/computer-go/