@ -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, that happens for example when too many people try to play a game where a specific number of cards from a deck are give to each player, and there are too many players for the amount of cards in the deck
* When taking more cards than are available from a pile, `()` (null or undefined) is returned, that happens for example when too many people try to play a game where a specific number of cards from a deck are give to each player, and there are too many players for the amount of cards in the deck