An open API service indexing awesome lists of open source software.

https://github.com/nitindahiya-dev/guessing_game

"Welcome to our Rust-based command-line game where players try to guess a randomly selected fruit. If their guess matches the fruit, they win! We encourage contributions from the community.!!
https://github.com/nitindahiya-dev/guessing_game

rust rust-game

Last synced: 13 days ago
JSON representation

"Welcome to our Rust-based command-line game where players try to guess a randomly selected fruit. If their guess matches the fruit, they win! We encourage contributions from the community.!!

Awesome Lists containing this project

README

          

# Fruit Guessing Game

This is a simple command-line game written in Rust where the player needs to guess a randomly selected fruit from a predefined list.

## How to Play
1. Clone the repository or download the `main.rs` file.

2. Ensure you have Rust installed on your system. If not, you can download it from [Rust's official website](https://www.rust-lang.org/tools/install).

3. Compile and run the program using the following command:

```bash

cargo run
=> Follow the instructions to guess the fruit.

=> If your guess matches the randomly selected fruit, you win!

How it Works



=> The program selects a random fruit from a predefined list.

=> The player is prompted to enter their guess.

=> If the guess is correct, the player wins. Otherwise, they are prompted to try again.

Contributing



Contributions are welcome! If you have any suggestions, bug reports, or improvements, feel free to open an issue or submit a pull request. To contribute to this project:




=> Fork the repository.

=> Clone your forked repository to your local machine.

=> Create a new branch for your changes: git checkout -b feature/your-feature-name.

=> Make your changes and test them thoroughly.

=> Commit your changes: git commit -am 'Add new feature'.

=> Push to the branch: git push origin feature/your-feature-name.

=> Submit a pull request to the main branch of the original repository.

=> Please ensure that your code follows the project's coding style and conventions.