Git Product home page Git Product logo

fizzbuzz's Introduction

FizzBuzz Build Status Coverage Status

The FizzBuzz game is written using node.js with the Babel ES6 transpiler. This package includes source code and unit tests.

Building the App

You need to build the app before you can play it. In your Bash terminal run npm install to install the app dependencies. Then run npm run build to build the app.

Playing the Game

You can play the FizzBuzz game by running npm run play from your Linux console. Exit the game with ctrl + c.

Directories

Lib

./lib contains the transpiled, distribution-ready code for the FizzBuzz game. (This directory is empty until you build the app.)

Src

./src contains the ES6 source code for the FizzBuzz game.

Test

./test provides unit tests for the FizzBuzz game. Tests are run using the Mocha test driver and Chai assertion library. Run tests with npm run test. (Don't forget to run npm install first.)

To Do

This app could be improved with a few additional features:

  • Type checking to ensure the inputs are numbers (not implemented)
  • Support for decimal input (not implemented)
  • Support for substitutions in any order (currently substitutions must be submitted entered ascending order)
  • Additional test coverage

fizzbuzz's People

Stargazers

Shalyn N avatar Shalyn avatar

Watchers

K avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.