Git Product home page Git Product logo

pursuit-core-web-react-state-lab-tested's Introduction

Pursuit-Core-Web-React-State-Lab

Pursuit Logo

Build a simple clicker game. It should have the following requirements:

  • Display the current score to the user, starting from a score of 0
    • Use the exact text: Current Score: followed by the score.
  • Clicking a button increments the score by one
    • The button text should have the exact text: +1
  • Have a button where the user can spend 10 points to increase the value of each click by 1
    • The button should have the exact text: Pay 10 points to change from +1 to +2
    • Display an alert with the exact text You can't afford that! if the user doesn't have enough points to spend
    • If the user has enough points, reduce the score by 10, and add 1 to points you add to your score each time you click the button.
    • The button text should change as well, for example from +1 to +2
    • The pay button text should also update, for example from Pay 10 points to change from +1 to +2 to Pay 10 points to change from +2 to +3
  • When the user has 100 or more points, display a victory screen
    • There should be an <h2> element with the exact text You Win!
    • There should be a button with the text Play again? (including the question mark)
      • Clicking on this button starts the game over again with a score of 0, a +1 button, etc.
    • Keep the user's score on the screen
    • Do not show the buttons to add to the score or pay points.

clickerGame

Getting Started

  • Fork this repo
  • Clone the forked repository
  • cd to the directory where you cloned it
  • npm install to install dependencies
  • npm run cypress to open the cypress testing window
  • npm test to run jest / node tests

Note: Remember to git add, git commit and git push regularly

Submission Guidelines

  • When finished, commit and push your work.
  • Make a pull request on github.
  • Submit the link to your pull request on Canvas.

[Additional instructions]

pursuit-core-web-react-state-lab-tested's People

Contributors

mikeboyle avatar bedonjonathan avatar joshuakgoldberg avatar myrasmith 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.