This is the documentation for all options.
parameter |
type |
default |
description |
bot |
boolean |
false |
Whether the player is a bot |
id |
number | string |
required |
The id of the player |
symbol |
string | null |
null |
The symbol of the player |
username |
string |
"Player" |
The username of the player |
parameter |
type |
default |
description |
firstPlayerIndex |
number |
1 |
The index of the first player |
players |
PlayerOptions[] |
required |
All players' data |
playerCountRange |
Range |
new Range(1, Infinity) |
To restrict the number of players |
requireSymbol |
boolean |
false |
Whether all players need their own symbols |
parameter |
type |
default |
description |
gameStatus |
string[] |
[] |
The possible game statuses |
playerManagerOptions |
PlayerManagerOptions |
required |
The options for the player manager |
parameter |
type |
default |
description |
initial |
string |
status[0] |
The initial status |
status |
string[] |
[] |
The possible game statuses |
parameter |
type |
default |
description |
players |
PlayerOptions[] |
required |
All players' data |
parameter |
type |
default |
description |
answerLength |
number |
4 |
The length of the answer |
players |
PlayerOptions[] |
required |
All players' data |
parameter |
type |
default |
description |
players |
PlayerOptions[] |
required |
All players' data |
range |
Range |
new Range(1, 1000) |
The range of the answer |
parameter |
type |
default |
description |
boardSize |
number |
3 |
The number of the pieces |
players |
PlayerOptions[] |
required |
All players' data |
parameter |
type |
default |
description |
boardSize |
number |
19 |
The dimensions of the board |
players |
PlayerOptions[] |
required |
All players' data |
parameter |
type |
default |
description |
boardSize |
number |
5 |
The dimensions of the board |
players |
PlayerOptions[] |
required |
All players' data |
parameter |
type |
default |
description |
boardSize |
number |
3 |
The dimensions of the board |
players |
PlayerOptions[] |
required |
All players' data |
parameter |
type |
default |
description |
hardMode |
boolean |
false |
Whether to enable hard mode |
players |
PlayerOptions[] |
required |
All players' data |
parameter |
type |
default |
description |
source |
CommandInteraction | Message |
required |
The source to instantiate the game |
time |
number |
60e3 |
How long to consider a player idle |
extends DjsGameWrapperOptions, BigTwoOptions
extends DjsGameWrapperOptions, BullsAndCowsOptions
extends DjsGameWrapperOptions, FinalCodeOptions
extends DjsGameWrapperOptions, FlipTripOptions
extends DjsGameWrapperOptions, GomokuOptions
extends DjsGameWrapperOptions, LightsUpOptions
extends DjsGameWrapperOptions, TicTacToeOptions
extends DjsGameWrapperOptions, TofeOptions