Skip to content

alirazaart/dicegame

Repository files navigation

Dice Roller Game

Description

This is a Dice App Application using Laravel 8. Dice Game script where it can receive input N which is the number of players and input M which is the number of dice for each player. These are the game rules:

    1. At the beginning of the game, each player would receive an M unit dice..
    1. Each player would throw their dice at the same time.
    1. Each player then would check their own dice results, and make these evaluations:
    • a. Dice with 6 number would be removed from the game. The player would receive 1 victory point.
    • b. Dice with 1 number would be given to their neighbor player.
    • c. Dice with 2,3,4 and 5 numbers would be kept for the next round.
    1. After evaluation, the player who has no dice should not play anymore. They also cannot receive dice after this round.
    1. If at the end of evaluation only one player has dice, the game would end.
    1. Players with the biggest victory point win the game. In case of tie, both players win the game.

Requirement

Installing

composer install

Develop By

Ali Raza

About

Laravel Test Dice Game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages