Runs a vending machine emulator in the terminal. More...
Classes | |
| class | Vendotron.Drink |
| A small struct representing a drink. More... | |
| class | Vendotron.Currency |
| A small struct representing a denomination of US currency. More... | |
| class | Vendotron.State |
| The current state of the Vendotron. More... | |
Functions | |
| def | Vendotron.display (message) |
| Display a Vendotron message in a pretty format. More... | |
| def | Vendotron.get_change (price, payment) |
| Calculate the change required based on a given payment. More... | |
| def | Vendotron.handle_key (key) |
| Catch a key press and do the appropriate action. More... | |
| def | Vendotron.main () |
| Entry point for the Vendotron program. More... | |
Variables | |
| dictionary | Vendotron.drinks |
| A dictionary of all drinks in the machine. More... | |
Runs a vending machine emulator in the terminal.