Coder Social home page Coder Social logo

davidefavia / rock-paper-scissors-for-badasses Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 476 KB

Rock, paper, scissors for badasses! Hand game simulation built on top of AngularJS.

Home Page: http://davidefavia.com/rock-paper-scissors-for-badasses/

JavaScript 18.64% HTML 4.36% CSS 77.00%

rock-paper-scissors-for-badasses's Introduction

Badasses!

Choose your badass and play against computer!

Requirements

To develop, serve and build this project you need node.js and bower and gulp installed globally.

$ npm install -g bower
$ npm install -g gulp

To run tests you also need karma-cli installed globally:

$ npm install -g karma-cli

Installation

Install node.js modules and bower dependencies:

$ npm install
$ bower install

Develop while playing

Run task:

$ gulp serve

This task creates a folder named build inside the project, it is removed and created when you run serve. If you open your browser at http://localhost:12345 you can play the game.

If you need to make changes or fix bugs, just modify files inside src folder: every change is reflected inside build folder and the game is reloaded inside the browser.

Javascript

Main application file is located at src/js/app.js. It describes the AngularJS application of the game.

Styles

Bootstrap is the chosen frontend package. For simpliciy you can override Bootstrap styles inside src/less/app.less file, it is compiled down to CSS at every change and moved to build/css folder.

Build

To build and distribute project:

$ gulp dist

This task works like serve BUT it does not start the webserver and it does not watch src files for changes.

You can publish build folder content wherever you want!

Test

To run tests:

$ npm test

Unit testing is done with Karma runner environment and Jasmine as framework. Tests run inside Chrome browser.

Todo

License

The MIT License (MIT)

Copyright © 2015 Davide Favia

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.

rock-paper-scissors-for-badasses's People

Contributors

davidefavia avatar

Watchers

James Cloos avatar  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.