@startuml start partition "**Game**" { : Set board; partition "**Game loop**" { repeat if (Monster player collision?) then (yes) :Shuffle board; if (Was a zombie?) then (yes) :Take away 1 life; endif endif if (Lives == 0) then (yes) stop endif :What the player sees; :Render; :Capture user input; label capture if (is Quit) then (yes) stop endif :Move/turn player; if (is Exit) then (yes) stop endif :Move ghosts; :Move zombies; repeat while() } } @enduml