Class: Square

Square(args, {{Object|null)})

A square on a grid

Constructor

new Square(args, {{Object|null)})

Create a square
Parameters:
Name Type Description
args Object The properties of the square.
Properties
Name Type Description
id string The unique identifier of the square.
x number The x co-ordinate of the square.
y number The y co-ordinate of the square.
{{Object|null)} args.piece - The piece on the square.
Source:

Members

constructorName :string

Type:
  • string
Source:

id :string

Type:
  • string
Source:

piece

Source:

x :number

Type:
  • number
Source:

y :number

Type:
  • number
Source: