Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

§Variables

BISHOP

The string that represents a Bishop

BLACK

The string that represents the Black color side

Chess

The chess.js function that is used to build chess game instances. It can be used with or without new to build your instance. Both variants work the same.

EMPTY

The constant that represents an empty square or value

FLAGS

Flags used to build flag strings for moves

KING

The string that represents a King

KNIGHT

The string that represents a Knight

PAWN

The string that represents a Pawn

QUEEN

The string that represents a Queen

ROOK

The string that represents a Rook

SQUARES

A list of all the squares in the game, from "a1" to "h8"

WHITE

The string that represents the White color side

§Interfaces

ChessInstance
Comment
Move

The full data about a chess move

Piece
ShortMove

Partial data about a chess move including the from and to square, and if a promotion occured.

§Type Aliases

PieceColor
  • "b" for Black
  • "w" for White
PieceType
  • "p" for Pawn
  • "n" for Knight
  • "b" for Bishop
  • "r" for Rook
  • "q" for Queen
  • "k" for King
Square

One of the possible squares on a chess board in san format, e.g. "a8" to "h1".

SquareColor