This is a simple Rust program that generates a phrase using the "Simon Says" game concept. The program takes command-line arguments and randomly decides whether to prepend "Simon Says" to the input phrase.
- Rust programming language
- Cargo package manager
-
Clone the repository:
git clone https://github.com/VimalanS369/simon_says.git cd simon_says
-
Build the project using Cargo:
cargo build
-
Run the executable with command-line arguments:
./target/debug/simon_says Hello World
- The program will randomly decide whether to prepend "Simon Says" to the input phrase.
- The program is designed to take any number of command-line arguments and generate a phrase based on the "Simon Says" game.
- If no arguments are provided, the program will print an empty line.
./target/debug/simon_says Learning Rust is fun
Output:
Simon Says Learning Rust is fun
This project is licensed under the MIT License - see the LICENSE file for details.
- This program uses the
rand
crate for random number generation.
Feel free to modify and use the code as needed! If you encounter any issues or have suggestions, please open an issue on the GitHub repository. Contributions are welcome!