MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / startTicTacToe

Method startTicTacToe

code/main/ATree.ts:388–402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

386 }
387
388 private startTicTacToe(): void{
389 // Reset the array
390 this.ticTacToeBoard = [];
391
392 // Add the signs to the board
393 for(var i = 0; i < 5; i++){
394 this.ticTacToeBoard.push([]);
395 for(var j = 0; j < 5; j++){
396 this.ticTacToeBoard[i].push(ATreeTicTacToeSign.NO_SIGN);
397 }
398 }
399
400 // Set the step
401 this.ticTacToeStep = ATreeTicTacToeStep.PLAYING;
402 }
403
404 private update(): void{
405 // Erase everything

Callers 3

constructorMethod · 0.95
nextStepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected