Giter Club home page Giter Club logo

urinal's Introduction

Urinal solver

Sometimes you want to find the best place to tinkle. This is a simple urinal solver that uses a weighting strategy with rules to select which urinal would be the best one to wizz at.

It tries to prioritize corners, equidistance from other occupied stalls, and minimizes sequential clusters of occuped stalls on either side. It also prioritizes being closer to a wall even if that means there are others more close by since a wall gives you more privacy

As an example, you can see how it selected the stall with the following example configuratinos:

 !  o  x  o  o  x 
 x  o  o  x  o  ! 
 x  o  !  o  x  o  x 
 x  o  o  o  x  o  ! 
 x  !  x  x 
 x  x  o  x  o  x  !  x

Where x is occupied, o is open, and ! is the chosen stall

urinal's People

Contributors

devshorts avatar

Stargazers

Thomas avatar Timothy Hahn avatar

Watchers

James Cloos avatar

urinal's Issues

Add ability to rank neighbors

Rank should be used to decide whether you should be positioned by them in the future. A "would pee with again" metric.

Some suggested tags for neighbors:

  • Screams while peeing
  • Spits while peeing
  • Pees on floor
  • Doesn't flush
  • Makes eye contact while peeing
  • Moans while peeing
  • CLEARLY shakes it more than 3 times

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.