Documentation ¶
Index ¶
Constants ¶
View Source
const ( TERM_NORMAL = "Normal" TERM_TIME = "Time forfeit" )
View Source
const ( TC_BULLET = 0 TC_BLITZ = 3 * 60 TC_RAPID = 10 * 60 TC_CLASSICAL = 60 * 60 )
Upper bounds for adjusted time per game (seconds), bullet assumes 40move game, blitz, rapid 60 move game.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ByteCountingReader ¶
type ByteCountingReader struct {
// contains filtered or unexported fields
}
Reader that keeps track on the bytes read. Useful for reading compressed files and estimateing their compression by wrapping input and output readers (i.e. input: file, output: decompressed data read).
type Bzip2PGN ¶
type Bzip2PGN struct {
// contains filtered or unexported fields
}
func NewBzip2PGN ¶
type PGN ¶
type PGN struct { Event string // White string // Black string Result string // WhiteElo string // BlackElo string // ECO string Moves string }
func (*PGN) GetAnnotations ¶
func (*PGN) PostFilter ¶
Filter conditions that dependant on a combination of tags. ie Elo difference TODO: function stub.
func (*PGN) RemoveAnnotations ¶
type PlainPGN ¶
type PlainPGN struct {
// contains filtered or unexported fields
}
func NewPlainPGN ¶
type Source ¶
type Tag ¶
type Tag string
const ( TAG_EVENT Tag = "Event" TAG_SITE Tag = "Site" TAG_DATE Tag = "Date" TAG_ROUND Tag = "Round" TAG_WHITE Tag = "White" TAG_BLACK Tag = "Black" TAG_RESULT Tag = "Result" TAG_TERMINATION Tag = "Termination" TAG_TIMECONTROL Tag = "TimeControl" TAG_ECO Tag = "ECO" TAG_WHITE_ELO Tag = "WhiteElo" TAG_BLACK_ELO Tag = "BlackElo" )
Click to show internal directories.
Click to hide internal directories.