Skip to content

Commit

Permalink
Fixing monopoly.md (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
MedovTimur authored Oct 25, 2024
1 parent ee495d7 commit d56ebfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/examples/Gaming/monopoly.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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<Option<(ActorId, Gears, Price, Rent)>>,
Expand Down

0 comments on commit d56ebfb

Please sign in to comment.