Giter Club home page Giter Club logo

greedosity's Introduction

Greedosity

ScoreKeeper Project Updated 5/18/18

alt text

The way the game works is straightforward until the GREED! (formerly SURPRISE) button is pressed. For example, when contestant Mike clicks the SURPRISE button, the method "surpriseMike" first checks Mike's current earnings (scoreMike). If scoreMike is 0, then clicking on the GREED! button will add a random amount between $10 and $50 to his earnings. If scoreMike is more than 0, the method checks to see how many times Mike clicked the $50 button since his last reset to 0. That information, which is stored in the global variable "numberOfTimesMikePicked50", determines whether Mike's current earnings will be doubled, tripled, or reset to zero. Mike's earnings are safe if numberOfTimesMikePicked50 is either 0 or 1. But if Mike picked the $50 button 2 or more times since his last reset, then he has a 50/50 chance of either tripling his earnings or being reset to 0. By the way, whenever Mike is reset to zero, the variable "numberOfTimesMikePicked50" is also reset to 0.

GREED! button functionality:

Contestants are not allowed to click the GREED! button consecutively.

If contestant score = $0, add random amount between $10 and $50

If not, then:

If numberOfTimesPicked50 = 0, triple contestant score.

If numberOfTimesPicked50 = 1, double contestant score.

If numberOfTimesPicked50  >= 2, contest either resets to zero or triples score.

	If contestant loses all earnings, numberOfTimesPicked50 also resets to zero.

Screenshots & Videos: https://photos.app.goo.gl/O3HyIshwoPWr1j0m2

Video: https://youtu.be/5bq4Y-ncNSA (Video is from previous version of app)

greedosity's People

Contributors

sonyarina avatar

Watchers

 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.