From d56ebfb04e3ebc5402746d78561db647b22a3d13 Mon Sep 17 00:00:00 2001 From: MedovTimur <62596970+MedovTimur@users.noreply.github.com> Date: Fri, 25 Oct 2024 13:06:40 +0300 Subject: [PATCH] Fixing monopoly.md (#199) --- docs/examples/Gaming/monopoly.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/examples/Gaming/monopoly.md b/docs/examples/Gaming/monopoly.md index 545674c..0d299eb 100644 --- a/docs/examples/Gaming/monopoly.md +++ b/docs/examples/Gaming/monopoly.md @@ -142,12 +142,12 @@ yarn start ![img alt](../img/monopoly-2.png) -4. If the game is not over, make more reservations and send a message `GameAction::Play` again. After the game is over, it's state becomes Finished and the admin can restart the game by starting a new player registration. +4. If the game is not over, make more reservations and send a message `Play` again. After the game is over, it's state becomes Finished and the admin can restart the game by starting a new player registration. ## Programs ### Master program -The [Master program](https://github.com/gear-foundation/dapps/tree/master/contracts/syndote/src) initiates with monopoly card details (cell cost, special cells like jail and lottery) and is preloaded with sufficient gas for automated play. Prior to each player's move, the master program verifies the gas amount, triggering a message to the game admin for additional gas reservation if needed. +The [Master program](https://github.com/gear-foundation/dapps/tree/master/contracts/syndote) initiates with monopoly card details (cell cost, special cells like jail and lottery) and is preloaded with sufficient gas for automated play. Prior to each player's move, the master program verifies the gas amount, triggering a message to the game admin for additional gas reservation if needed. **Players registration**: Players deploy their strategic programs and send a message `Register` to `Master` program. Master program: @@ -191,7 +191,7 @@ During actions `AddGear` and `Upgrade` a player can sell his other properties to ### Player's program `Player` is a program in which the monopoly game strategy is implemented. It must meet the following requirements: - It has to accept the following message from `Master` program: - ```rust title="syndote/io/src/lib.rs" + ```rust title="syndote/app/src/services/game/utils.rs" pub struct YourTurn { pub players: Vec<(ActorId, PlayerInfo)>, pub properties: Vec>,