diff --git a/public/examples/tictactoe/index.js b/public/examples/tictactoe/index.js index 4316eeb..a338274 100644 --- a/public/examples/tictactoe/index.js +++ b/public/examples/tictactoe/index.js @@ -51,8 +51,10 @@ function setup() { // Make the clear button const clearButton = createButton("clear").mousePressed(() => { if (selectedTeam != "Observer") { - shared.currentTurn = "Blue"; - shared.boardState = [0, 0, 0, 0, 0, 0, 0, 0, 0]; + partySetShared(shared, { + boardState: [0, 0, 0, 0, 0, 0, 0, 0, 0], + currentTurn: "Blue", + }); } }); }