GithubHelp home page GithubHelp logo

stayfi / rock-paper-scissors-nodejs Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 983 KB

Rock, Paper, Scissors & Lizard, Spock (Node.js)

License: MIT License

JavaScript 81.45% HTML 18.55%
nodejs node-js tdd-node mocha-chai nyc-coverage instanbul jscpd

rock-paper-scissors-nodejs's Introduction

Rock, Paper, Scissors & Lizard, Spock (Node.js)

version: 'v1.0.6'

Build Status Coverage Status

Description

For an interview, i was asked to dev this game with thoses users story:

  • Front

    As a frequent games player,

    I'd like to play rock, paper, scissors

    So that I can spend an hour of my day havind fun

    Acceptance Criteria:

    • Can I play Player vs Computer?
    • Can I play Computer vs Computer?
    • Can I play a different game each time?
  • Back

    Technical Constraints:

    • Doesn't necessarly need a flashy GUI (can be simple)
    • Use PHP (Scala or Javascript)
    • Libs / external modules should only be used for tests
    • Using best in industry agile engineering practices

Best if we use TDD, code coverage, copy and paste detection, designs (DDD, or design patterns).

So, i tried to use my "code-sens" to doing my best in less than one day, starting from scratch.

You will find here, an example of TDD, with a lot of tests.

Prepare your envionement

Clone the project in your workspace

    $ git clone https://github.com/Stayfi/rock-paper-scissors-nodejs.git

install dependencies

Go to the project directory and do

    $ npm install

Start the project

    $ npm run start

Open your browser to : http://localhost:3000

Running tests

    $ npm run test

Test results

Running coverage

    $ npm run coverage

Coverage results

Running copy/paste detection

    $ npm run jscpd

Jscpd results

rock-paper-scissors-nodejs's People

Contributors

stayfi avatar

Watchers

 avatar  avatar

Forkers

briancgmendoza

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.