Giter Site home page Giter Site logo

piyush1972 / golf-part-2---react-state-events-adding-dynamic-styles-setting-css-classes---qzao18zxcj9j Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harsikasingh/golf-part-2---react-state-events-adding-dynamic-styles-setting-css-classes---qzao18zxcj9j

0.0 0.0 0.0 239 KB

JavaScript 74.90% CSS 18.90% HTML 6.21%

golf-part-2---react-state-events-adding-dynamic-styles-setting-css-classes---qzao18zxcj9j's Introduction

Hard Golf Game

You have a golf ball that you want to move with keyboard keys.You are given a Start Button that begins the game and a Reset Button that restarts the game. To move the ball, appropriately update state variable ballPosition.When Game starts Ball should be inserted into DOM and Start button should be removed from DOM.

Acceptance Criteria

  • className of Ball should be ball.
  • className of start button should be start.
  • className of reset button should be reset.
  • When Start button is clicked, the button should go away and the ball should appear.
  • When Right,Left,Up,Down, Arrow key is clicked on the keyboard, move the ball by 5 pixel in respective direction.
  • Don't Change prewritten function likerenderChoice. This can cause problem in validation of code.

golf-part-2---react-state-events-adding-dynamic-styles-setting-css-classes---qzao18zxcj9j's People

Contributors

harsikasingh 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.