Skip to content

FatumaSharif/ping-pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping-Pong

Description

This a game where if the user enters a number it displays a list of numbers from 1 to the specified number with exceptions listed in the specifications below. Play the game

Specifications

Specifications Input Output
It can count up to the provided number 2 [1, 2]
Numbers divisible by 3 are replaced with "ping" 3 [1, 2, ping]
Numbers divisible by 5 are replaced with "pong" 5 [1, 2, ping, 4, pong]
Numbers divisible by 15 are replaced with "ping-pong" 15 [..13, 14, ping-pong]

Technologies Used

  • HTML
  • CSS
  • JavaScript

License

This project is licensed under the MIT License - see the LICENSE.md file for details