Expand description
§Card Games
This crate provide several card games that can be conveniently accessed through a shared set of primitives.
§Adding your game
To add your game you have to:
- Fork the repo
- Create a new file under
games/src/gamesnamed after the game - Create a public
structrepresenting your game and implementing theDefaultand theGametraits- Most of the methods are documented, but the main one is
handle_movewhich updates the game status according to the card recieved
- Most of the methods are documented, but the main one is
- Export your game in
games/src/games/mod.rs - Implement some tests
- Open a pull request on the main repo