Coder Social home page Coder Social logo

blaze-crash-simulator's Introduction

blaze-crash-simulator

Collect crash points data from blaze.com's Crash game, define betting strategies and simulate their outcomes.

blaze-crash-simulator's People

Contributors

renatosbispo avatar

Watchers

 avatar

blaze-crash-simulator's Issues

Define the data structures

Crash Point

Definitions (where not self-explanatory):

  • crashPoint.isGood: 'good', true if the crash point value is greater than or equal to 2, or 'false' otherwise.

Structure:

crashPoint: {
  isGood: boolean,
  value: number
}

Crash Points History Sample

Definitions (where not self-explanatory):

  • crashPointsHistorySample.dataCollectionStartDate / crashPointsHistorySample.dataCollectionEndDate: date objects representing when the sample collection started and when it ended respectively (these values should be useful to estimate the hourly earnings of each strategy according to the simulation ran against this sample).

Structure:

crashPointsHistorySample: {
  id: string,
  dataCollectionStartDate: Date,
  dataCollectionEndDate: Date,
  data: [crashPoint]
}

Betting Strategy Simulation

Definitions (where not self-explanatory):

  • Run: a sequence of rounds entered that ends when bettingStrategy.parameters.stopOnProfit or bettingStrategy.parameters.stopOnLoss (see next section) is reached.
  • bettingStrategySimulation.results.successRate: a number indicating the percentage of runs that ended because bettingStrategy.parameters.stopOnProfit (see next section) was reached.

Structure:

bettingStrategySimulation: {
  sampleId: string,
  date: string,
  results: {
    profit: number,
    hourlyEarnings: number,
    successRate: number
  }
}

Betting Strategy

Definitions (where not self-explanatory):

  • bettingStrategy.parameters.betValue: how much will be bet on each round entered (defined as a percentage of the stopOnLoss value).
  • bettingStrategy.parameters.entrySignals: an array of arrays of numbers (zeros and ones) where 0 represents a bad crash point and 1 a good crash point. Each array of zeros and ones represents a sequence of crash points after which a round should be entered.

Structure:

bettingStrategy: {
  id: string,
  name: string,
  creationDate: string,
  parameters: {
    cashoutAt: number,
    stopOnProfit: number,
    stopOnLoss: number,
    betValue: number,
    entrySignals: [[number]],
  },
  simulations: [bettingStrategySimulation]
}

To do


  • Main program flow
    • Setup program data directory
    • Initiate sample collection
    • Save sample
    • Ask for strategy
    • Initiate strategy simulation
    • Save strategy
    • Show all strategies with respective simulation results
    • Add option to add new strategy
    • Add option to exit by pressing <Esc>

  • Crash points sample collection
    • Setup automated browser
    • Collect sample data
    • Build sample structure

  • Betting strategy simulation
    • Load sample
    • Execute strategy on sample
    • Add simulation results to strategy

  • Refactoring
    • Create internal lib for dealing with console output

  • Improvements
    • Simulate existing strategies after new sample collection

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.