Skip to content

ravindrapai/State-Pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

State-Pattern

GumBallMachine - State Pattern implementation

'''''''''''''''' '''''''''''''''''''' insert quarter |SoldOutState | --> | NoQuarterState |--------------------- '''''''''''''''' | ''''''''''''''''''' | ^ | ^ | | | | | | | | | --------- ----------- | | dispense=0 | dispense > 0 | | | | | | | v ''''''''''''''''''' | '''''''''''''''''''' |SoldState | -----------------------|HasQuarter | ''''''''''''''''''' eject quarter '''''''''''''''''''' ^ | | | ---------------------------------------------------------- turn crank

About

GumBallMachine - State Pattern implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages