955e37cfb390f5ea4983f52db3ccb1b451e3dcb6
The first stage of the game is collecting the relevant players who want to play. We can't deal out any cards, nor do an election, till this is done. The way I've codified this is by having an opaque PlayerBuilder struct with some helpers to add "new players" - essentially just empty decks of cards. Once we're done, we "freeze" or "fix" this set of players by returning a Boxed array representing the contents. Ridiculously simple API.
┌───────────────────────────┐
│ ____ _ _____ │
│ | _ \(_) / ____| │
│ | |_) |_ __ _ | | │
│ | _ <| |/ _` | | | │
│ | |_) | | (_| | | |____ │
│ |____/|_|\__, | \_____| │
│ __/ | │
│ |___/ │
└───────────────────────────┘
A dynamic multiplayer playing card game, written in Rust.
Goals:
- Server/client setup for multiplayer games.
- Allow up to 12 players to interact in any one game.
- Player ranking system.
Requirements:
- Rust
Run:
$ cargo build
to compile the program.
Languages
Rust
100%