diff --git a/exe/slotmachine b/exe/slotmachine new file mode 100755 index 0000000..cfe7dcc Binary files /dev/null and b/exe/slotmachine differ diff --git a/slotmachine.cpp b/slotmachine.cpp index 5baaf25..81144dc 100644 --- a/slotmachine.cpp +++ b/slotmachine.cpp @@ -1,3 +1,5 @@ +#include + enum class MachineState { Startup, Ready, @@ -5,16 +7,34 @@ enum class MachineState { Release, Unlock, Shutdown -} +}; // SIMULATING HARDWARE-REQUESTS int main() { - MachineState state = MachineState.Startup; - while(true) { - state = MachineState.Ready; - std::string = std::cin << "Pick your slot" << std::endl; + MachineState state = MachineState::Startup; + + state = MachineState::Ready; + while(true) { + std::string input; + + switch (state) { + case MachineState::Ready: { + std::cout << "Pick a number" << std::endl; + std::getline(std::cin, input); + std::cout << "Coast: 15€" << std::endl; + + state = MachineState::PendigPayment; + break; + } + case MachineState::PendigPayment: { + + + break; + } + + } } return 0; } \ No newline at end of file