A game of Ping Pong
Carolyne Milgo
Uses HTML, CSS, Javascript
- The user enters a number which the program creates a list: Input: 5; Output:1, 2, 3, 4, 5
- The user enters a number and if there are numbers in the list divisible by 15, it is replaced by "Ping-Pong" Input: 15 Output: 1,2,3,4,5,6,7,8,9,10,11,12,13,14, Ping-Pong
- The user enters a number and if there are numbers in the list divisible by 3, they are replaced by "Ping" Input: 5 Output: 1,2,Ping,4,5
- The user enters a number and if there are numbers in the list divisible by 5, they are replaced with "Pong" Input: 5 Output: 1,2,3, Ping, 4, Pong
Fork the project folder from Github repository and save it in your local machine. Run the index file in your preferred browser and play!
The game of Ping Pong is accessible on Github pages through this link https://carolynemilgo.github.io/pingPong/