Search found 27 matches

by anazawa
Sun Sep 13, 2015 6:20 pm
Forum: Computer Go
Topic: Beta release of SGFGrove.js
Replies: 6
Views: 5215

Re: Beta release of SGFGrove.js

Released the version 1.0.2.

Changes from 1.0.1 ( diff ):

- add a table of contents to README.md
- add "SGF Property Types" to README.md
- add "Limitations" to README.md
- add scripts/test.psgi
- add sgfgrove/validator.js
- add test/test.stringify.js
- #stringify does not throw an exception anymore ...
by anazawa
Wed May 27, 2015 10:06 pm
Forum: General Go Chat
Topic: Japanese word "souba" == "market price"?
Replies: 8
Views: 9710

Re: Japanese word "souba" == "market price"?

(kind of off topic, about the origin)

We Japanese do not use *this* 相場 in our natural conversation.
It's a go-specific usage. At first, I thought a word 相場 was invented
in the Meiji period (next to the Edo period) to translate Das Kapital
or something. A lot of Japanese words were born in the ...
by anazawa
Sat May 09, 2015 10:39 pm
Forum: Computer Go
Topic: EidoGo and Wordpress 4.1.5
Replies: 10
Views: 7334

Re: EidoGo and Wordpress 4.1.5

While it's not EidoGo-based, how about a WGo.js plugin for Wordpress?
http://guzumi.de/wgo-plugin/

You can also use jGoBoard if you're familiar with HTML (This demo would be helpful).
http://jgoboard.com/
https://github.com/jokkebk/jgoboard
by anazawa
Sat May 09, 2015 11:59 am
Forum: Computer Go
Topic: Beta release of SGFGrove.js
Replies: 6
Views: 5215

Re: Beta release of SGFGrove.js

Unfortunately, I have no time to update this module these days.
Thus 0.0.2 (beta) will become 1.0.0 without code changes.

I wrote this module to replace WGo.js's built-in SGF reader in my project.
I think the latest version of SGFGrove.js is stable enough for that purpose.

I you discover a bug in ...
by anazawa
Sat May 02, 2015 7:48 pm
Forum: Computer Go
Topic: Beta release of SGFGrove.js
Replies: 6
Views: 5215

Re: Beta release of SGFGrove.js

(Introduction to toSGF method)

The toSGF method allows you to convert a used-defined object into SGF.
This method is invoked implicitly as a method on the object when you generate a SGF string:

SGFGrove.stringify([[
[
{ FF: 4 },
{
B: {
toSGF: function () {
return ...
by anazawa
Sat May 02, 2015 6:41 pm
Forum: Computer Go
Topic: Beta release of SGFGrove.js
Replies: 6
Views: 5215

Re: Beta release of SGFGrove.js

Frequently asked questions:

# How can I clone the repository?

Install git and execute the following command:

$ git clone https://github.com/anazawa/sgfgrove.git


# How can I run the tests?

Install Node.js and run the following command:

$ npm test

Note that "tape", "argg" and ...
by anazawa
Sat May 02, 2015 6:20 pm
Forum: Computer Go
Topic: Beta release of SGFGrove.js
Replies: 6
Views: 5215

Re: Beta release of SGFGrove.js

I released the version 0.0.2 (beta).

Changes from 0.0.1:

( diff / changes )

* add .jshintrc
* add .travis.yml
* remove jsdoc.conf
* add "argg" and "jshint" to package.json as "devDependencies"
* SGFGrove.stringify's replacer callback is applied to the given data recursively
* (regexp) use [\s\S ...
by anazawa
Sun Mar 15, 2015 8:56 am
Forum: Computer Go
Topic: Beta release of SGFGrove.js
Replies: 6
Views: 5215

Beta release of SGFGrove.js

Hi,

I'm releasing SGFGrove.js, a type-ware SGF parser/composer intended for the browser.

m

Features:

- no dependencies, while the tests require Node.js
- convert a SGF property value to the appropriate JavaScript type
- extendable, i.e. you can add game-specific properties other than go ...
by anazawa
Wed Mar 11, 2015 4:39 am
Forum: Computer Go
Topic: Beautiful SGF indentation
Replies: 17
Views: 9884

Re: Beautiful SGF indentation

KGS (CGoban) style:


(;GM[1]FF[4]CA[UTF-8]AP[CGoban:3]ST[2]
RU[Japanese]SZ[19]KM[6.50]TM[0]OT[80x10 byo-yomi]
PW[foo]PW[bar]WR[6d]BR[6d]DR[2015-02-26]PC[The KGS Go ...
by anazawa
Wed Mar 11, 2015 4:07 am
Forum: Computer Go
Topic: Beautiful SGF indentation
Replies: 17
Views: 9884

Re: Beautiful SGF indentation

@Bantari

Thanks for your kind words
I was thinking about the use cases of SGF files:

1. A SGF file that is transferred by HTTP and opened by MultiGo or something via web browsers
2. A SGF file that is opened by CUI viewers such as less/more to debug
3. A SGF file that is attached to email and ...
by anazawa
Mon Mar 09, 2015 1:01 pm
Forum: Computer Go
Topic: Beautiful SGF indentation
Replies: 17
Views: 9884

Re: Beautiful SGF indentation

[off topic]

SGF representaion of HTML:


(
;FF&#91;4&#93; <-- required
HTML&#91;lang&#58;en&#93; <-- Compose type
(
;HEAD&#91;&#93; <-- None
(
;META&#91;charset&#58;utf8&#93; <-- Compose type
)
(
;TITLE&#91;&#93; <-- None
C&#91;Not Found&#93;
)
(
;SCRIPT&#91;type&#58;text/javascript ...
by anazawa
Sun Mar 08, 2015 11:47 pm
Forum: Computer Go
Topic: Beautiful SGF indentation
Replies: 17
Views: 9884

Re: Beautiful SGF indentation

@Bantari

Thanks for your suggestion

SGF is a text-only format and certainly allows us to indent the text.
This means, given a game record, there should exist various styles to indent
the game record, not only one style. If so, I thought there should exist
the well-used/well-known/popular styles ...
by anazawa
Sun Mar 08, 2015 2:26 am
Forum: Computer Go
Topic: Beautiful SGF indentation
Replies: 17
Views: 9884

Re: Beautiful SGF indentation

Thanks for your interesting suggestion :)


What I meant is that dealing with very long comments without line breaks or ones that inherently contain new lines poses some additional challenges and design considerations for indenting SGF. It's quite common to see paragraphs of text within comments ...
by anazawa
Sat Mar 07, 2015 8:24 am
Forum: Computer Go
Topic: Beautiful SGF indentation
Replies: 17
Views: 9884

Re: Beautiful SGF indentation


I also had some comments on the structure produced by the parser. The output structure seems to simply mirror the grammatical structure of the SGF file, which might make it a little tedious to traverse the tree structure of the game. An alternative output structure could simplify away the ...
by anazawa
Sat Mar 07, 2015 12:36 am
Forum: Computer Go
Topic: Beautiful SGF indentation
Replies: 17
Views: 9884

Re: Beautiful SGF indentation

@YeGo

Thanks for you suggestion


Based on the statement "White space (space, tab, carriage return, line feed, vertical tab and so on) may appear anywhere between PropValues, Properties, Nodes, Sequences and GameTrees." that you quoted from the spec for FF[4], it would seem that all of the SGF ...