Skip to content

Robson/Lottery-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Platform OS Browser Version Status
Desktop Windows Firefox 98 Working
Desktop Windows Opera 84 Working
Desktop Windows Chrome 99 Working
Desktop Windows Edge 99 Working
Mobile Android Chrome 98 Working
Mobile Android Firefox 97 Working

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:

  • HTML
  • CSS
  • JavaScript

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

License

Stars

Watchers

Forks