Skip to content

Commit

Permalink
removed unused winner field in game struct
Browse files Browse the repository at this point in the history
  • Loading branch information
nitaliano committed Jun 26, 2024
1 parent 17e5719 commit 9878b39
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contracts/src/TicTacToe.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ contract TicTacToe {
address player1;
address player2;
PlayerTurn currentTurn;
address winner;
uint8 numOfTurns;
uint8[3][3] board;
}
Expand All @@ -51,7 +50,6 @@ contract TicTacToe {
player1: player1,
player2: address(0),
currentTurn: PlayerTurn.PlayerOne,
winner: address(0),
numOfTurns: 0,
board: [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
});
Expand Down

0 comments on commit 9878b39

Please sign in to comment.