Code Monkey home page Code Monkey logo

rock-paper-scissors-symfony's Introduction

Welcome to the demo rapresentation of the game Rock-Paper-Scissors build on top of symfony3 framework.

Installation

  1. Clone the project
  2. Install composer : https://getcomposer.org/download/
  3. run composer install into the terminal
  4. Composer will then propose you to create automatically the parameters.yml file. For default settings leave the default values
  5. run php app/console server:run into the terminal
  6. Access to the url indicated by the previous terminal command. For exemple: http://127.0.0.1:8000

How does it works?

A user can play an Hour Game of Rock Paper Scissors versus an A.I. Player.

The user must set his username, select if wants the auto mode enabled (an algorithm will select a SIGN for him-for this alpha version a simple random function is used).

The user can also select a game mode. EASY or EXPERT

Note:

  • The EASY mode uses a simple random function to select a SIGN for the A.I player
  • The EXPERT mode uses an simple algorithm analyzing the previous sequences of signs played by the user on the game on each round. The history of the rounds are saved on a simple sqlite database.

Tests

This project uses PhpUnit. Intall phpunit: https://phpunit.de/ execute: phpunit into the terminal

rock-paper-scissors-symfony's People

Contributors

fidelio314 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.