Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 639 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 639 Bytes

Urinal-Simulator-2015

DEMO

A simple behavioral model of men picking a urinal

There are two main versions, a command line one and a gui based one.

The men follow three simple rules:

1: Go for the urinal with the least men adjacent to you

2: Take an end if open

3: Use the closest option (the men start at urinals[0])

Note: The GUI version has a more robust version of urinalSimulator.js because the console version was just POC

All you really have to read to get it is: https://github.com/david340804/Urinal-Simulator-2015/blob/master/Gui/urinalSimulator.js