/rock-paper-scissors

a game of rock paper scissors

Primary LanguagePHP

Rock, Paper, Scissors!

Web app that lets two users play a game of rock, paper, scissors. Or one player can play against the computer. 09/13/2016

By ** Zach Baum Anand Angalig**

Description

A game of rock, paper, scissors for two players playting against each other, or one player can choose to play against the computer.

Setup/Installation Requirements

  • If you wish to view the source code locally on your machine please follow the following steps:

    • Navigate to the directory in which you want the project to reside

    • Enter the following command into your terminal: git clone https://github.com/anandangalig/rock-paper-scissors.git

    • Navigate to the cloned directory, and execute the following command in the terminal: composer install

    • Navigate to the web directory and start your local host by executing the following command in your terminal: php -S localhost:8000

    • Open up the browser of your choice and go to the following url: http://localhost:8000/

    • If you wish to look at the source code, feel free to browse through the files in the directory

Specs

  • Rock beats scissors. , IN: P1: rock | P2: scissors , OUT: "Player 1 wins!"

  • Paper beats rock. , _IN: P1: rock | P2: paper , OUT: "Player 2 wins!"

  • Scissors beats paper. , _IN: P1: scissors | P2: paper , OUT: "Player 1 wins!"

  • Two of the same choices ends in a draw. , _IN: P1: rock | P2: rock , OUT: "Draw!"

Known Bugs

None yet

Support and Contact Details

Please feel free to contact us at: zacharybaum42@gmail.com anandangalig@gmail.com

Technologies Used

  • silex v~2.0
  • twig v1.24.1
  • phpunit v5.5.

License

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.

Copyright (c) 2016 Zach Baum & Anand Angalig