Crates.io | pictionary |
lib.rs | pictionary |
version | 0.1.0 |
source | src |
created_at | 2024-02-22 08:12:33.146892 |
updated_at | 2024-02-22 08:12:33.146892 |
description | A simple, interactive console game for guessing words in Rust. |
homepage | |
repository | https://github.com/oursy/pictionary |
max_upload_size | |
id | 1149055 |
size | 7,517 |
Pictionary is a simple, interactive console game library written in Rust. It allows players to guess words selected randomly from a predefined list. This project aims to provide a basic understanding of Rust programming concepts including handling user input, random number generation, and basic Rust syntax. It's lightweight, easy to use, and perfect for those new to Rust or looking for a fun coding exercise.
To use Pictionary in your project, add it as a dependency in your Cargo.toml
:
[dependencies]
pictionary = "0.1.0"
Replace "0.1.0" with the latest version of Pictionary.
Here's a simple example on how to use the Pictionary library to run a game:
use pictionary::play_pictionary;
fn main() {
println!("Welcome to Pictionary!");
play_pictionary();
}
To contribute to Pictionary or run it locally, clone the repository and build the project:
git clone https://github.com/yourgithub/pictionary.git
cd pictionary
cargo build
Run tests to ensure everything is working as expected:
cargo test
Contributions are welcome! Feel free to open issues or submit pull requests to improve the project.