Hello. I am building a shooting game for learning javascript and jquery. Following are tasks to complete to work
- On the screen, there should be a button to start the game.
- Once the game finishes, it should update the current score.
- When a player wins 3 games, show the winner of the match.
I have done the first part and able to show the current state. But, unable to store the previous state and associate with the current. Moreover, last step is not done yet.
Any help is highly appreciated.
Thanks
Top comments (5)
You can store it :
Or
Can you show us your code ? (put it in your post, on a github repo or with codesandbox)
First of all thanks. I am providing my link to js fiddle. Kindly review the code snippet.
jsfiddle.net/zh65mkeo/2/
Thanks Ferrier for this support.