Skip to content

Commit

Permalink
Incorporated partySetShared
Browse files Browse the repository at this point in the history
  • Loading branch information
Isabel Anguera committed Jun 12, 2020
1 parent 122ba31 commit 908ed37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/examples/tictactoe/index.js
Expand Up @@ -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",
});
}
});
}
Expand Down

0 comments on commit 908ed37

Please sign in to comment.