Skip to content

A simple optial rock papper scissors backend written in JS

License

Notifications You must be signed in to change notification settings

Sharkmare/Rock-Paper-Scissors-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors-JS

A simple optial rock papper scissors backend written in JS

The main difference from this to every other rock papper scissors game out there is that, we do not ask "who won?" We know who won inherently.

Instead of using a long if else chain or even a switch statement the win conditions are simply an object, the combination of the different choices are then simply used as the keys for the value which stores whether the player on the right one or lost, its a siple performant and neat solution that required minimal code.

About

A simple optial rock papper scissors backend written in JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published