Giter Site home page Giter Site logo

rock-paper-scissors-public's Introduction

A simple server-side rock-paper-scissors game.

cd level with src file to run. Npm i to install dependencies.

IMPORTANT: Requires supertest to run several of the tests. npm i supertest. It won't update the package.json file but will allow you to run the tests effectively afterwards!

Then click 'npm start' and navigate to the relevant port on which the program is running, which will be specified in the terminal.

Passed 22 tests - all routes now tested.

I have set up automated testing, so you don't need to run the program manually in order to test the routes. I used the chai and mocha library in addition to the usual node testing suites.

I believe I have met all of the extended criteria: none of my class functions exceed five lines of code and I have used a nested hashmap in order to avoid having to write a long conditional statement to determine the outcomes between the two players. My code is extensively tested. Overall, I'm happy with the program and feel I now have a template for backend work that I can build upon to create greater complexity in the future.

Please see package.json for a list of the additional dev dependencies.

rock-paper-scissors-public's People

Contributors

dpak33 avatar

Watchers

 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.