This is a simple command-line game written in Rust where the player needs to guess a randomly selected fruit from a predefined list.
-
Clone the repository or download the
main.rs
file. -
Ensure you have Rust installed on your system. If not, you can download it from Rust's official website.
-
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!
=> 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.
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.