Skip to content

Commit

Permalink
Fix homework assignment (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
MedovTimur authored Mar 24, 2024
1 parent 33599bd commit 9c36a47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/02-basic/02-program-basics/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Add it to the `[build-dependencies]` section in the `Cargo.toml` file:

```toml
[build-dependencies]
gear-wasm-builder = { git = "https://github.io/gear-tech/gear.git", tag = "v1.0.2" }
gear-wasm-builder = { git = "https://github.io/gear-tech/gear.git", tag = "v1.2.0" }
```

And create the `build.rs` file with the following content:
Expand Down
7 changes: 7 additions & 0 deletions docs/02-basic/06-homework/assignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ Let's explore types used.
CounterTurn(u32),
Won(Player),
}

#[derive(Debug, Default, Clone, Encode, Decode, TypeInfo)]
pub enum Player {
#[default]
User,
Program,
}
```

- Internal game state should keep all information related to the current state of the game. Some information is set during initialization, the first player is chosen randomly, some data are change during the game.
Expand Down

0 comments on commit 9c36a47

Please sign in to comment.