ConnectN
The ConnectN Service provides helpers for building games like Connect-4 and Tic-Tac-Toe.
RPCS
- ConnectN.isFullBoard()
Check if every position on the current board is occupied.
Returns:
Boolean
(Boolean) -true
if the board is full, otherwisefalse
- ConnectN.isGameOver()
Check if the current game is over.
Returns:
Boolean
(Boolean) -true
if game over, otherwisefalse
- ConnectN.newGame(row: Number?, column: Number?, numDotsToConnect: Number?)
Create a new ConnectN game
Arguments: