Skip to main content

Chess

Index

Constructors

constructor

Methods

board

fen

  • fen(): string
  • Returns string

game_over

  • game_over(): boolean
  • Returns boolean

in_checkmate

  • in_checkmate(): boolean
  • Returns boolean

in_draw

  • in_draw(): boolean
  • Returns boolean

in_stalemate

  • in_stalemate(): boolean
  • Returns boolean

in_threefold_repetition

  • in_threefold_repetition(): boolean
  • Returns boolean

move

  • move(opts): any

moves

  • moves(opts): string[]
  • Parameters

    • optionalopts: { square?: any; verbose?: boolean }
      • optionalsquare: any
      • optionalverbose: boolean

    Returns string[]

reset

  • reset(): void
  • Returns void

turn

undo

  • undo(): void
  • Returns void