Welcome to the Rice Cooker Simulator! This console-based program simulates a rice cooker, providing a simple yet interactive experience for users to simulate various rice cooking functionalities.
- Add rice: Introduces rice into the rice cooker.
- Cook rice: Initiates the rice cooking process.
- Steam: Commences the steaming process for rice.
- Keep warm: Maintains the cooked rice warm.
- Remove rice: Clears out the rice from the cooker.
- Quit: Exits the simulator.
To utilize this simulator in Dart, ensure you have the Dart SDK installed. You can incorporate the Dart linter dart analyze
by following the instructions provided here.
To run tests for Dart, use the following command:
dart test path_to_test_file.dart
For Ruby, ensure you have Ruby installed on your system. Follow the guidelines to install a suitable linter for Ruby.
gem install rspec
Run RSpec tests:
rspec path_to_spec_file.rb
If you're working with TypeScript, set up the ESLint linter by referring to the documentation available here.
- Ensure you have npm installed.
- Add test scripts in your package.json:
"scripts": {
"test": "your_test_command"
}
- Run tests
npm test
If you're working with TypeScript, set up the ESLint linter by referring to the documentation available here.
- Ensure you have npm installed.
- Add test scripts in your package.json:
"scripts": {
"test": "your_test_command"
}
- Run tests
npm test
Fortunately for you, I've already followed those instructions and put it in the repository, all you have to do for JS and TS is to run npm test.
- Implementation to cook items other than rice for steaming purposes.
- Functionality to add water before adding rice for improved cooking simulation.
Help us to find bugs !
We welcome contributions! If you find any issues or have ideas for improvements, feel free to submit a pull request or open an issue in the repository.
Enjoy simulating the Rice Cooker experience! Thank you for using the Rice Cooker Simulator.