Kokopu documentation
v2.9.2
API
Examples
Examples
Getting started
Set-up a position
Load a PGN file
Set-up a game from scratch
Chess960
Modules
exception
i18n
Classes
Database
Methods
game
gameCount
Game
Methods
annotator
annotator
ascii
date
date
dateAsString
event
event
findById
initialPosition
initialPosition
mainVariation
nodes
playerElo
playerElo
playerName
playerName
playerTitle
playerTitle
result
result
round
round
site
site
variant
exception.IllegalArgument
Members
functionName
exception.InvalidFEN
Members
fen
message
exception.InvalidNotation
Members
fen
message
notation
exception.InvalidPGN
Members
index
lineNumber
message
pgn
MoveDescriptor
Methods
capturedColoredPiece
capturedPiece
color
coloredPromotion
enPassantSquare
from
isCapture
isCastling
isEnPassant
isPromotion
movingColoredPiece
movingPiece
promotion
rookFrom
rookTo
to
Node
Methods
addNag
addVariation
comment
comment
figurineNotation
fullMoveNumber
hasNag
id
isLongComment
isVariation
moveColor
nags
next
notation
parentVariation
play
position
positionBefore
previous
promoteVariation
removeFollowingMoves
removeNag
removeVariation
swapVariations
tag
tag
tags
variations
Position
Methods
isEqual
ascii
castling
castling
clear
enPassant
enPassant
fen
fen
figurineNotation
figurineNotation
getAttacks
hasMove
isAttacked
isCheck
isCheckmate
isLegal
isMoveLegal
isNullMoveLegal
isStalemate
kingSquare
moves
notation
notation
play
playNullMove
reset
reset960
resetAntichess
resetHorde
square
square
turn
turn
uci
uci
variant
Variation
Methods
addNag
clearMoves
comment
comment
first
hasNag
id
initialFullMoveNumber
initialPosition
isLongComment
isLongVariation
isVariation
nags
nodes
parentNode
play
removeNag
tag
tag
tags
Global
Castle
Castle960
Color
ColoredPiece
coordinatesToSquare
Empty
EnPassantFlag
forEachSquare
GameResult
GameVariant
isMoveDescriptor
nagSymbol
oppositeColor
pgnRead
pgnWrite
Piece
Square
squareColor
squareToCoordinates
variantWithCanonicalStartPosition
i18n
This module defines the localizable strings used by the library.