Pizza Maker
In the original context, this kata was built to provide a simple and fun exercise to understand the asynchronous programming style.
Subject
Build an interactive programme that takes commands such as “cook a Margherita Pizza”, “show queue”, and “Get out the pizza”.
In the first step:
- Preparing a pizza takes 0 seconds.
- Cooking a pizza in the oven takes 45 seconds.
- The programme must alert when a pizza is cooked.
- After 15 seconds in the oven without taking it out, the pizza is burned.
- You earn one point for each pizza cooked.
You can add many more options, such as:
- topping management
- recipe management
- adding a preparation time
- different recipes can take different times in the oven
- the oven has a limit on the number of pizzas
- toppings have a cost in points
- different points for each pizza recipe