Skip to content

"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.!!

Notifications You must be signed in to change notification settings

nitindahiya199/guessing_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

    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.

About

"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.!!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages