Giter Site home page Giter Site logo

codacy-badger / rock-scissors-paper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rezaep/rock-scissors-paper

0.0 0.0 0.0 38 KB

A repository containing Rock-Scissor-Paper project.

License: GNU General Public License v3.0

Dockerfile 1.62% Java 98.38%

rock-scissors-paper's Introduction

Rock-Scissors-Paper Build Status Coverage Status

A repository containing Rock-Scissor-Paper project.

Rock-scissors-paper is a zero-sum hand game usually played between two people, in which each player simultaneously forms one of three shapes with an outstretched hand.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to run the project

Java Development Kit (JDK 8+)
Maven
Docker (if you want to run the project using Docker image)

Installing

Clone the repository
git clone https://github.com/rezaep/Rock-Scissors-Paper.git
Use Maven build tool to build the project. This command runs tests and builds a Jar file.
mvn clean test package
Run jar file using Java command.
java -jar target/rock-scissors-paper-1.0-SNAPSHOT.jar

The example output will be:

Player A wins 36 of 100 games
Player B wins 32 of 100 games
Tie: 32 of 100 games
Winner is: Player A (36 to 32 wins)

Running the tests

In order to run automated tests use below command.

mvn clean test

Deployment

To package the Jar file inside a Docker image use following commands.

mvn clean test package
docker build -t image:tag . (e.g. rezaep/rock-scissors-paper:latest)

Authors

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details

rock-scissors-paper's People

Contributors

reza-ep 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.