Coffee Machine Simulator

Coffee Machine Simulator

This is a Coffee Machine Simulator (Deployed with the help of a low-code platform, Anvil Framework). The idea is to simulate how a coffee machine works with all its aspects:

Here is what you can do: Choose a beverage, insert coins, validate the amount of coins inserted and prepare or not the beverage.

To play the game you can scroll down into the Play Here section or download all the python files in the game RESPOSITORY and execute it in your personal code editor.
After the game deployment, you can access its rules.

Play Here

Game Rules

  • The coffee machine in question is capable of preparing 3 beverages:
    • Espresso;
    • Latte;
    • Cappuccino
  • If you Click on the "Machine Report button, it will present the remaining ingredients in the machine, alongside the amount of money that it received".
  • If you Click on the "Refill Machine" button, it will refresh the Coffee Machine setting it's ingredients to the default amount value:
    • Water: 300 ml;
    • Milk: 200 ml;
    • Coffee: 100 g;
    • Total Amount: $ 0;
  • Each beverage requires a certain amount of ingredients at a specific cost:
    • Espresso - 50ml of Water | 18g of coffee | 0g of coffee | Cost: $ 1.50;
    • Latte - 200ml of Water | 150ml of Milk | 24g of coffee | Cost: $ 2.50;
    • Cappuccino - 250ml of Water | 100ml of Milk | 24g of coffee | Cost: $ 3.00
  • Once you've chosen a beverage, the machine will decide if it has sufficient ingredients to prepare it. If positive, you will proceed to payment. If negative, you will be asked to choose either another beverage or refresh the machine.
  • Once the payment is allowed, you need to specify the amount of coins you're going to insert on it.
    • If the amount of money is not enough, the beverage will be canceled and the money returned
    • If the amount of money is enough, the beverage will be prepared, your change, if exits, will be given and the amount of ingredients needed to prepare the beverage will be removed from the machine