Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "model/constants"

Index

Type aliases

Coord

Coord: [number, number]

Coordinate in the form [x, y]

PlayerNumber

PlayerNumber: 0 | 1

Represent a player value (0 || 1)

PlayerOrTie

PlayerOrTie: -1 | PlayerNumber

Store a player or a tie

Variables

ME

ME: 0 = 0

Constant to represent player 1

type

{number}

OPPONENT

OPPONENT: 1 = 1

Constant to represent player 2

type

{number}

RESULT_LOSE

RESULT_LOSE: 1 = 1

Constant to represent player 2 winning

type

{number}

RESULT_TIE

RESULT_TIE: -1 = -1

Constant to represent a tie

type

{number}

RESULT_WIN

RESULT_WIN: 0 = 0

Constant to represent player 1 winning

type

{number}

UNPLAYED

UNPLAYED: PlayerOrTie = undefined

Constant to represent an unplayed cell

type

{number}

Generated using TypeDoc