Skip to content

RussH-code/Dice-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Development Project: Dice Simulator

Introduction

There are various use cases for a Random Number Generator. You could do a random dice roll or get a random quote. Most of the time, the implementation is relatively straightforward and similar to this project’s approach. In this project, we will create a dice roll simulation.

Requirements

The RNG should consist of:

An input box to assign how many dice to roll A drop down box to select the sides of the dice (for example d4, d6, d8, d10, d12, d20) A PHP rand(); function taking the inputs from the form An output to show # of dice rolled, the type of dice (d4, d6 ..), the total count of the dices rolled Output the details (number) of the individual dice rolls (Possibly using a foreach loop)

Details of project can be found on: https://www.codementor.io/projects/web/random-number-generator-web-app-bz042v8kll

Usage

The Dice Simulator can be assessed by pulling this repository and opening the .html file in a browser. Be sure to put the .png, .css and .js file in the same directory as well.

Sample Website

Image Courtesy of background dice artwork: https://favpng.com/png_view/dice-roller-role-playing-game-d20-systemdice-dungeons-dragons-d20-png/fLQg4E5D

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published