Skip to content

Commit

Permalink
Fix typo and link in tutorials.md (MystenLabs#4970)
Browse files Browse the repository at this point in the history
  • Loading branch information
piersy authored Oct 4, 2022
1 parent a167518 commit ab07713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/src/explore/tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ export PACKAGE=A613A7FF8CB03E0DFC0D157E232BBA50C5F19D17
## Playing TicTacToe
As we mentioned earlier, we need 3 parties to participate in this game: Admin, PlayerX and PlayerO.
As a high level, the game works as following:
At a high level, the game works as following:
1. The admin creates a game, which also specifies the addresses of the two players. This will also create two capability objects and send to each of the addresses to give them permission to participate in the same game. This ensures that an arbitrary person cannot attempt to join this game.
2. Each player takes turns to send a *Mark* object to the admin indicating where they want to place their mark.
3. The admin, upon receiving marks (in practice, this is done through monitoring events), places the mark to the gameboard.
4. (2) and (3) repeats until game ends.
Because the admin owns the gameboard, each individual player cannot place a mark directly on the gameboard (they don't own the object, and hence cannot mutate it, see [Object Model](../build/objects.md)), each mark placement is split to 2 steps, that each player first sends a mark, and then the admin places the mark. A sample gameplay can also be found in the [tic_tac_toe_tests](https://github.com/MystenLabs/sui/blob/main/sui_programmability/examples/games/tests/tic_tac_toe_tests.move) file.
Because the admin owns the gameboard, each individual player cannot place a mark directly on the gameboard (they don't own the object, and hence cannot mutate it, see [Object Model](../learn/objects.md)), each mark placement is split to 2 steps, that each player first sends a mark, and then the admin places the mark. A sample gameplay can also be found in the [tic_tac_toe_tests](https://github.com/MystenLabs/sui/blob/main/sui_programmability/examples/games/tests/tic_tac_toe_tests.move) file.
Now let's begin the game!
First of all, let's create a game with the command:
Expand Down

0 comments on commit ab07713

Please sign in to comment.