Added slotmachine
This commit is contained in:
20
slotmachine.cpp
Normal file
20
slotmachine.cpp
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
enum class MachineState {
|
||||||
|
Startup,
|
||||||
|
Ready,
|
||||||
|
PendigPayment,
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user