Skip to content

Sean-Ker/Krabby-Patty-Casino

Repository files navigation

Krabby Patty Hunting- Expected Value Casino Assignment

Supervisor: Ms. Martin
Couse: Data management (MDM4U-01)
Date: Friday, April 10th, 2020
Authors: Sean Kernitsman and Joshua Levine

Structure

The structure of the project consists of 4 important files:

  1. game_combinatorics.py- a utility file full of useful statistical functions.
  2. grid_world.py: The object oriented programming behind the program.
  3. game.py: The main game to run. See instructions below.
  4. simulator.py: A simulator that reassures the mathematics from the report.

Usage on Windows

  1. Please make sure that python<=3.7 and pip are installed.
  2. Download or clone this repository.
  3. Open a command line (<Win+R> and write cmd.exe) and write cd path_to_the_folder. Press < Enter>.
  4. Run pip install -r requirements.txt
  5. Run python game.py -h for further instructions. For example: python game.py --x 5 --y 5 --l 2 or python game.py --x 4 --y 3 --l 1.
  6. To execute and a live graph, you will need to open the simulator.py file and edit the constants as you wish.

YouTube Video

Please Note

Screenshots

Game Screenshot Sample Simulation(1) Sample Simulation(2)

About

Data management (MDM4U) Casino Assignment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages