Documentation ¶
Index ¶
- func AddMove(moves *[]schemas.InternalMove, color string, from int, to int, piece string, ...)
- func File(square int) int
- func FromHex(str string) (string, error)
- func GetDisambiguator(move *schemas.InternalMove, moves []schemas.InternalMove) string
- func InferPieceType(san string) string
- func IsDigit(str string) bool
- func LetterToChessUnicode(letter string) string
- func Ox88ToSan(square int) string
- func PopMove(history []schemas.History) ([]schemas.History, schemas.History)
- func Rank(square int) int
- func Some[T any](slice []T, test func(T) bool) bool
- func StrippedSan(move string) string
- func SwapColors(color string) string
- func ToHex(str string) string
- func TrimFen(fen string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDisambiguator ¶
func GetDisambiguator(move *schemas.InternalMove, moves []schemas.InternalMove) string
Uniquely identifies ambiguous moves
func InferPieceType ¶
func LetterToChessUnicode ¶
func StrippedSan ¶
Parses all of the decorators out of a SAN string
func SwapColors ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.