Skip to content

Commit

Permalink
[Move] fixup: remove some vertical whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
amnn committed Jul 11, 2024
1 parent 7bb12a4 commit 53cd199
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
10 changes: 0 additions & 10 deletions examples/tic-tac-toe/move/sources/owned.move
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,14 @@ module tic_tac_toe::owned {
/// The state of an active game of tic-tac-toe.
public struct Game has key, store {
id: UID,

/// Marks on the board.
board: vector<u8>,

/// The next turn to be played.
turn: u8,

/// The address expected to send moves on behalf of X.
x: address,

/// The address expected to send moves on behalf of O.
o: address,

/// Public key of the admin address.
admin: vector<u8>,
}
Expand All @@ -62,16 +57,12 @@ module tic_tac_toe::owned {
/// is one, or to both players in the case of a draw.
public struct Trophy has key {
id: UID,

/// Whether the game was won or drawn.
status: u8,

/// The state of the board at the end of the game.
board: vector<u8>,

/// The number of turns played
turn: u8,

/// The other player (relative to the player who owns this Trophy).
other: address,
}
Expand Down Expand Up @@ -135,7 +126,6 @@ module tic_tac_toe::owned {
MARK__, MARK__, MARK__,
MARK__, MARK__, MARK__,
],

turn: 0,
x,
o,
Expand Down
9 changes: 0 additions & 9 deletions examples/tic-tac-toe/move/sources/shared.move
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@ module tic_tac_toe::shared {
/// The state of an active game of tic-tac-toe.
public struct Game has key {
id: UID,

/// Marks on the board.
board: vector<u8>,

/// The next turn to be played.
turn: u8,

/// The address expected to send moves on behalf of X.
x: address,

/// The address expected to send moves on behalf of O.
o: address,
}
Expand All @@ -33,16 +29,12 @@ module tic_tac_toe::shared {
/// is one, or to both players in the case of a draw.
public struct Trophy has key {
id: UID,

/// Whether the game was won or drawn.
status: u8,

/// The state of the board at the end of the game.
board: vector<u8>,

/// The number of turns played
turn: u8,

/// The other player (relative to the player who owns this Trophy).
other: address,
}
Expand Down Expand Up @@ -97,7 +89,6 @@ module tic_tac_toe::shared {
MARK__, MARK__, MARK__,
MARK__, MARK__, MARK__,
],

turn: 0,
x,
o,
Expand Down

0 comments on commit 53cd199

Please sign in to comment.