Coder Social home page Coder Social logo

kenfuciousd / math_simulator Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 7.01 MB

Math Slot Machine Simulator, version 2. Meant for assisting in slot machine paytable and reel design, and calculating the real math from many rounds of simulation.

Python 100.00%
math simulator slot-machine

math_simulator's Introduction

Math_Simulator

Version 2 of a current project, broken out into its own repository

This is a Math Simulator project, meant to take in excel .xslx files with correct formatting, and build a virtual slot machine (3 or 5 reel, 3 positions exposed) based on those parameters in order to simulate the behavior over time, and measure the mathematics behind it.

Required: Python3, installed Anaconda package

To begin, run the main.py file through the python compiler.
(command prompt: python main.py ) There are no additional arguments to add.

Input guidelines for the Excel file are included in the .pdf, and in the example PARishSheet.xslx file. The formatting is as follows:

The excel file needs 4 sheets: 'Reels', 'Paytable', 'Paylines', 'RTP'

'Reels' sheet should have the Reel Strips, with no spaces, labeled "Reel #"

'Paytable' sheet should have the paytable sequence from largest to smallest, with the reel symbols listed and the pay line amount as the final column. note: for 5 reel, blanks are allowed in reel positions 4 or 5, to allow for smaller pay line wins.

'Paylines' should be two numbers per cell: reel,position. Important: Counting starts at 0; so 0,0 is the uppermost left game widow position, 0,1 is the second position on the first reel; 2,2 is the third position on the third reel.

'RTP' sheet should have at least two columns, one labeled "Volatility" with the calculated volatility index, and "RTP" for the calculated Return To Player percentage.

Next development steps:

  1. more, robust error checking for each of the inputs.
  2. solidifying the plotting behavior from matplotlib. one request, to be able to compare the plots of multiple simulator runs. "It works on my machine."
  3. broadening inputs? allowing other methods of building the reels, paytable, paylines, etc? through other file types? or a UI?
  4. Additional win behaviors: 'scatter' symbol type, and 'bonus' wins awarded from an exterior source or server
  5. Additional input flexibility to allow for different game window configurations outside 3x3 and 5x3

math_simulator's People

Contributors

kenfuciousd avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.