Browse Source

Merge branch 'main' of https://github.com/KeyKoder/cards-simulator into main

new_protocol
ThePerkinrex 5 years ago
parent
commit
e5c7bb556c
No known key found for this signature in database GPG Key ID: 1F45A7C4BFB41607
  1. 4
      README.md

4
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`:
```rs
```rust
// setup(data) -> data
fn setup(data) { // Required
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.
### 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

Loading…
Cancel
Save