SkyRousse / Ping-Pong

Epicodus | JS | update to previous version of ping pong app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ping Pong

Number generating web app

By Sky Rousse

Description

This is a web application that takes a number from a user and returns a range of numbers from 1 to the chosen number with the following exceptions:

  • Numbers divisible by 3 are replaced with "ping"
  • Numbers divisible by 5 are replaced with "pong"
  • Numbers divisible by 15 are replaced with "pingpong"
Behavior Input Example Output Example
Restrict input to positive numbers only The13 (or) -1 Alert: value must be greater than or equal to 1
Returned numbers count up to provided number starting with 1 2 1,2
Returned numbers that are evenly divisible by 3 are replaced with "ping" 6 1,2,ping,4,5,ping
Returned numbers that are evenly divisible by 5 are replaced with "pong" 10 1,2,ping,4,pong,ping,7,8,ping,pong
Returned numbers that are evenly divisible by 15 are replaced with "pingpong" 15 1,2,ping,4,pong,ping,7,8,ping,pong,11,ping,13,14,pingpong

Setup/Installation Requirements

Update

Practice using npm and gulp tasks to to streamline your development process. Put your program's functions into their own module(s) using the exports keyword and use separate files for your front-end DOM manipulation logic. Your project should contain at least two JavaScript files. Include gulp tasks to concatenate, minify, browserify, and check your code with JSHint. Also remember to create a build task, and a clean task. Remember that we want the browser to load as few files as possible, and generated production files should be kept in a separate build folder. You are not intended to complete all of the possibilities on this page. It is recommended to do the Calculator exercise first, following along with the weekend homework, then proceed to the journal, and then if you have time pick either Memory or Simon. Feel free to expand on these problems to challenge yourself if you want, but only after you have the basics working. You must have at least 2 JavaScript files for each of these projects, including object declarations in the back-end file and using instances of these objects in your front-end file. You must also have a functioning gulpfile with all tasks described over the weekend homework, as well as all npm packages included in your manifest file.

Support and contact details

Questions, ideas, feedback? If so please feel free to contact Sky at skyrousse@gmail.com

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • jQuery (jquery-1.12.4.js)
  • Bootstrap

License

MIT License

Copyright (c) 2016 Sky Rousse

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Epicodus | JS | update to previous version of ping pong app


Languages

Language:JavaScript 66.9%Language:HTML 29.3%Language:CSS 3.8%