Skip to content

Repository files navigation

Lottery Simulator

Table of Contents

Demo

Demo

Explanation

This is a webpage that simulates the results from various UK-based lotteries.

You can change the lottery type, amount of tickets and the simulation speed.

Live Version

https://robson.plus/lottery-simulator/

Compatibility

The output for this project is designed for desktop and mobile.

PlatformOSBrowserVersionStatus
DesktopWindowsFirefox98Working
DesktopWindowsOpera84Working
DesktopWindowsChrome99Working
DesktopWindowsEdge99Working
MobileAndroidChrome98Working
MobileAndroidFirefox97Working

Last tested on 9th March 2022.

Testing

To run this on your computer:

File Descriptions

index.html

This is the webpage with the simulator, the input form and the output tables.

lotteries.js

This consists of the information for each lottery type and some helper functions that are shared across all of them.

Each lottery type must be in the same format as the existing lotteries, which means it must have a title, currency, etc.

simulate.js

This file is responsible for simulating the ticket results, showing the statistics and handling the copying of statistics to the clipboard.

style.css

All formatting and layout information is contained in this file.

Technologies

This is built using:

Validation

Valid HTML

Valid CSS

X

About

This is a webpage that simulates the results from various UK-based lotteries. You can change the lottery type, amount of tickets and the simulation speed.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages