Skip to content

A program that replaces multiples of 3 with 'ping,' 5 with 'pong,' and 15 with 'ping-pong' (Epicodus Ruby Week 1 Monday)

Notifications You must be signed in to change notification settings

codemargaret/ping_pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping Pong

A Ruby app that replaces certain numbers with words, 09.05.2017

By Margaret Berry and Noah Gottlieb

Project Goals

  • Practice writing and running specs in Ruby.
  • Practice writing if statements in Ruby.

Specifications

Spec Input Output
Counts from 1 to a given number 4 1, 2, 3, 4
Replaces words divisible by 3 with 'ping' 4 1, 2, 'ping', 4
Replaces words divisible by 5 with 'pong' 5 1, 2, 'ping', 4, 'pong'
Replaces words divisible by 15 with 'ping-pong' 15 1, 2...14, 'ping-pong'

Setup/Installation Requirements

Run the following commands in Terminal:

  1. $ git clone this repository
  2. $ cd ping_pong
  3. Open in your preferred text editor for a closer look at the code. There is currently no way to run it in the browser.

Known Bugs

  • There are no known bugs at this time.

Support and contact details

If you have any updates, questions, or suggestions please contact Margaret or make a contribution.

Technologies Used

  • Ruby

License

This software is licensed under the MIT license.

Copyright (c) 2017 Margaret Berry and Noah Gottlieb

About

A program that replaces multiples of 3 with 'ping,' 5 with 'pong,' and 15 with 'ping-pong' (Epicodus Ruby Week 1 Monday)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages