- Practice writing and running specs in Ruby.
- Practice writing if statements in Ruby.
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' |
Run the following commands in Terminal:
$ git clone
this repository$ cd ping_pong
- Open in your preferred text editor for a closer look at the code. There is currently no way to run it in the browser.
- There are no known bugs at this time.
If you have any updates, questions, or suggestions please contact Margaret or make a contribution.
- Ruby
This software is licensed under the MIT license.
Copyright (c) 2017 Margaret Berry and Noah Gottlieb