tucuxi.org

Cubicle Selection Algorithm

It's the unspoken law. The law of the workplace bathroom. Which cubicle do you select, and why? It's long been a theory of mine that there is an unspoken, shared understanding of which cubicle is the least socially awkward one to choose when walking into an already occupied bathroom. The general rules are:

Implementation

Loading...

Red squares are 'occupied' cubicles, the green square is the suggested cubicle, and yellow represents the location of the external door. Click on the door to toggle the position from left to right, and click on a cubicle to toggle it from occupied to vacant.