I will like to share to all a small nba game, now that we are in playoffs. Everything seems to work perfectly , and i know it can be improved better, although i wanted to share it because i will like your opinion thoughts how can this game be coded for better practices, maybe you guys can give me more advice for better practices and maybe some more options, and also testing the game, comments are welcome this will help me, be better at practice and to learn from all you. I will give you the rules on how the game is develop so you can play around with it.
- 2 buttons for two players, (bucks and Celtics) when we click on each, points will be added.
- Leading Button will be who is leading by how many points.
- Reset all points.
- Game 3 ( 0 - 0 ) First to 3 wins who ever wins will be added 1 point to each team.
- Side Note (I modify the first team to reach to 5 points. You can always change it. countBucks >= 5).
- I did 2 addEventListeners to both teams buttons, im sure it can be done with one.
I leave the the link for the game, enjoy and looking forward for any modifications and best practices.