Table tennis, also known as ping-pong and whiff-whaff, is a sport in which two or four players hit a
lightweight ball, also known as the ping-pong ball, back and forth across a table using small solid
rackets.
The game is composed of two players named as Player 1
& Player 2
. There are buttons to keep score of both players. A drop-down menu named as Playing To
will decide the winning point of the player, default playing point is 3, playing point ranges from 3-11. The player which will gather the last point first will win resulting in disabling of the two buttons Player 1
& Player 2
. A Reset
button will reset the playing points of both the players.
- HTML 5
- JavaScript
- CSS framework (Bulma)
CDN link for Bulma
Description | URL |
---|---|
Bulma |
https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css |
Bulma website link for CDN link: https://bulma.io/
Download the zip file and run the code in Visual Studio Code
NOTE: Make sure to include CDN link for Bulma