Skip to content

Ram-1234/Weekend-Hackathon-4---Golf-Part-2

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published