GithubHelp home page GithubHelp logo

rpsls's Introduction

RPSLS

Rock Paper Scissors Lizard Spock game for /dailyprogrammer on reddit

/* Rock Paper Scissors Lizard Spock *

  • Rules:
  • Scissors cut Paper and decapitate Lizard.
  • Paper covers Rock and disproves Spock.
  • Rock crushes Lizard and crushes Scissors.
  • Lizard poisons Spock and eats Paper.
  • Spock smashes Scissors and vaporizes Rock.
  • Assignment can be found at http://www.reddit.com/r/dailyprogrammer/comments/23lfrf/4212014_challenge_159_easy_rock_paper_scissors/
  • Quote from the site:
  • "...implement a basic game of Rock Paper Scissors Lizard Spock...
  • get the human choice...
  • randomly pick a move...
  • compare the results and display the moves and the out come"
  • BONUS: (BONUSES NOW IMPLEMENTED; W/ BUGS)
  • The game loops and continues to play matches until the user quits or a fixed number of games is played.
  • At the end it records some basic stats:

Total Games played Computer Wins (Number and percentage) Human Wins (Number and percentage) Ties (Number and Percentage)

04/22/14 BUG REPORT: For some reason, when there are both wins and losses, the percentages don't display the correct number. I haven't had a chance to extensively debug this issue, but if you see what I did wrong, please let me know!

*/

rpsls's People

Contributors

danaalcala avatar

Watchers

James Cloos avatar  avatar

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.