console games
A hobby project for console games. New games are coming, hopefully 🙂🙂🙂.
Or you want to write some Rust? Help me out by adding a game of your choice!!!
See Contribution section for more details.
Games
List of available games:
- Guess the Word
- Guess the Number
- Word Type
- Four in A Line
- Tower of Hanoi
- Minesweeper
Usage
then run
Or as a library
use GameCenter;
To run an individual game
use ;
Contribution
I need your help!!! Let's grow this project together. If you have any ideas, wether it's a new game, performance improvements, code refactor/redesign, etc, please open an issue or a pull request.
To create a game
A game must implement the Play trait.
// games/my_game.rs
;
// --- snip ---
Lastly, make the game visible in the module tree.
// games.rs
// --- snip ---
pub use *;
To add a new game to the game center
Add the game to the return value of GameCenter::games method.
// game_center.rs
// --- snip ---