schemas

package
v0.0.0-...-6879a08 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CastlingRights

type CastlingRights struct {
	KingSide  bool
	QueenSide bool
}

type Comment

type Comment struct {
	Fen     string
	Comment string
}

type History

type History struct {
	Move       *InternalMove
	Kings      map[string]int
	Turn       string
	Castling   map[string]int
	EpSquare   int
	HalfMoves  int
	MoveNumber int
}

type InternalMove

type InternalMove struct {
	Color string
	From  int
	To    int
	Piece string
	// nullable (can be "")
	Captured string
	// nullable (can be "")
	Promotion string
	Flags     int
}

type KingPosition

type KingPosition struct {
	Color string
	Regex *regexp.Regexp
}

type Move

type Move struct {
	Color string
	From  string
	To    string
	Piece string
	// nullable (can be "")
	Captured string
	// nullable (can be "")
	Promotion string
	Flags     string
	San       string
	Lan       string
	Before    string
	After     string
}

type Piece

type Piece struct {
	Color     string
	PieceType string
}

type Square

type Square struct {
	Coords    string
	PieceType string
	Color     string
}

Jump to

Keyboard shortcuts

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