From 908ed376899a457989d6d6afda79803895d83801 Mon Sep 17 00:00:00 2001 From: Isabel Anguera Date: Fri, 12 Jun 2020 12:46:57 -0400 Subject: [PATCH] Incorporated partySetShared --- public/examples/tictactoe/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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", + }); } }); }