sgfinfo

command module
v0.0.0-...-1a98718 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2019 License: MIT Imports: 4 Imported by: 0

README

sgfinfo

Steps toward a command-line query tool for SGF Go game files.

This is still rudimentary.

to fetch:

go get github.com/dhodges/sgfinfo
go get github.com/stretchr/testify

to build:

$ go build

to test:

$ cd tests
$ go test

usage:

$ sgfinfo <sgf_file>

...which will dump details, in json, about the given game.

Parsing still needs to flesh out some of the darker corners of the SGF spec, but most use-cases are covered including zip-file archives, multiple games per file and gametree variations.

The parser is based on an excellent talk from Rob Pike: "Lexical Scanning in Go"

Resources

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL