Coder Social home page Coder Social logo

mvc-project's Introduction

MVC-PROJECT

Build Status Build Status Scrutinizer Code Quality Code Coverage

Documentation for repo mvc-project by mack20.

A project to examinate the course mvc at BTH.

Yatzy

Dices

Play Yatzy, and try to make it to the High Score!

Results of the Yatzy-games are saved in a database and presented under statistics, where you can find statistics about the last ten games played!

How to play?

Instructions are presented when the user is attempting to start a new game.

The Yatzy is played with five dices. The game consists of thirteen rounds, when all rounds have been played the result is presented. The user rolls the dices a maxium of three rolls per round. The aim is to get as high a score as possible. To get the bonus of 50 additional points the user must get 63 points or more from the first six rounds (Aces to Sixes). If the user rolls five dices with the same faces you get Yatzy, also worth 50 points.

The user is presented with a button to roll the first hand of dices. When rolled, the five dices are presented with a checkbox for each die. To the users left the scorebox is presented.

The user shall select dices to keep, non selected dices will be rerolled.

The user shall choose where to put score into scorebox after a maximum of three rolls. When dices are added to scorebox the accumaluted score for that round is presented and the user rolls a new hand. When all cells in the scorebox is filled, the result is presented to the user. If the user acchieved a new highscore the user will be able to add it's name to the high score.

Install

On the main page of this repository, below the name and above the list of files click "Code".
Choose your preference of downloading as zip or clone the repository and change the working directory where you want the clone.

On the command line, open repository.
Verify installation with the following command:

php -S localhost:8080 -t public

Make it run in your local server

Open a browser to your local server (e.g., Apache, XAMPP) and find the "public/" directory.

If an error accurs:

The stream or file "...storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

Make the storage directory writable by the web server:

chmod -R o+w storage/

Add database

Add your database in config/database.php and in .env

.env example:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database
DB_USERNAME=username
DB_PASSWORD=password

Reload the page and play Yatzy!

mvc-project's People

Contributors

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