API Docs for: 0.0.2
Show:

chess.model.Move Class

Module: Model

This is an abstract class for documentation purpose only. It describes the structure of a move in chess.model.Game

Item Index

Properties

action

String

Action - To be implemented

Example:

"action": "startAutoPlay"

comment

String

Comment

Example:

"comment":"This is my comment"

from

String

from square, example "e2"

Example:

     {
         from:'e7',
         to:'e8',
         promoteTo:'queen',
         comment:'My comment',
         m:'e8=Q',
         lm:'e7-e8=Q'
     }

id

String

Internal id property

index

Number

Internal move index property

lm

String

Long notation

Example:

lm: 'e2-e4'

m

String

Short notation

Example:

m: 'e4'

promoteTo

String

Promotion info

Example:

"promoteTo": "queen"

to

String

to square, example "e4"

Example:

"to" : "e4"

variations

Array

Array of variations. Each item in the array is an array of moves in that variation.