gamie-0.7.0 has been yanked.
gamie
A Rust library provides abstractions for several classic tiny games.
gamie provides simple yet adequate abstractions for several classic tiny games.
gamie only came with a few dependencies, it can be easily integrated into your projects.
Usage
To use gamie, you should enable modules in Cargo.toml. For example tictactoe:
[]
= { = "*", = ["tictactoe"] }
Now you can use the TicTacToe game abstraction:
use ;
let mut game = new.unwrap;
game.place.unwrap;
game.place.unwrap;
game.place.unwrap;
game.place.unwrap;
game.place.unwrap;
game.place.unwrap;
game.place.unwrap;
game.place.unwrap;
game.place.unwrap;
assert!;
assert_eq!;
Check the docs for further information.
Modules
Currently, the following modules are available:
Serialize / Deserialize
Bring in the serde feature to enable serialization and deserialization for structs
[]
= { = "*", = ["serde", "tictactoe"] }
no_std
This crate runs flawlessly on bare metal.
To remove the Rust standard library dependency, opt out the std feature by disabling default-features in Cargo.toml:
[]
= { = "*", = ["tictactoe"], = false }
License
GNU General Public License v3.0