No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
README.md
|
|
@ -46,7 +46,7 @@ In this file, firstly, the name of the game, the version and the authors are spe |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Then we have the script, in this case `game.rhai`: |
|
|
Then we have the script, in this case `game.rhai`: |
|
|
```rs |
|
|
```rust |
|
|
// setup(data) -> data |
|
|
// setup(data) -> data |
|
|
fn setup(data) { // Required |
|
|
fn setup(data) { // Required |
|
|
print("Setting up UNO for " + data.players + " players"); |
|
|
print("Setting up UNO for " + data.players + " players"); |
|
|
@ -110,4 +110,4 @@ See for example the `shuffle` function, which is provided by the environment. |
|
|
Go to the [rhai book](https://schungx.github.io/rhai/language/index.html) for the language reference. |
|
|
Go to the [rhai book](https://schungx.github.io/rhai/language/index.html) for the language reference. |
|
|
|
|
|
|
|
|
### Common errors: |
|
|
### Common errors: |
|
|
* When taking more cards than are available from a pile, `()` (null or undefined) is returned |
|
|
* When taking more cards than are available from a pile, `()` (null or undefined) is returned |
|
|
|