GithubHelp home page GithubHelp logo

phuclong304 / bustabit-script-simulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mtihc/bustabit-script-simulator

0.0 1.0 0.0 1.46 MB

Simulate running a script on bustabit

HTML 61.83% JavaScript 38.17%

bustabit-script-simulator's Introduction

The author of this project is NOT affiliated with, funded, or in any way associated with bustabit.com
The author of this project is NOT responsible if you lose money on bustabit.com after trusting the results of this simulator. This simulator runs on the results of previous games. Results achieved in the past don't provide any guarantee for the future. And there's no guarantee that this simulator behaves in exactly the same way as the engine on bustabit.

Bustabit Script Simulator

Simulates your script on thousands of bustabit games, in a few seconds.

Getting started

So you like to play bustabit? And you've written your own script? You want to see if it's profitable in the long run? (it's not)

You can simulate your script on thousands of bustabit games, in a few seconds.

  1. Go here: https://mtihc.github.io/bustabit-script-simulator/
  2. Choose or write a script.
  3. Configure the script
  4. Run the script
  5. View a summary of the simulation, including a line chart

Features

  • You can manage a list of scripts on the webpage, just like on bustabit.
  • Stores scripts and their configurations in the browser's local storage, just like on bustabit.
  • Parses the var config = ... object at the top of the script, into a user interface that is used to configure and drive the script, just like on bustabit. (read more about this on bustabit's autobet repository).
  • Exposes the following variables to the script, just like on bustabit:
    • config
    • engine
    • userInfo
    • log(message: string)
    • stop(reason: string)
  • The engine behaves as much as possible like the one on bustabit.
  • The engine provides much of the same interface as the one on bustabit.
    • engine.bet(wager: number, payout: number)
    • engine.history
    • engine.on(eventName: string, callback: function)
    • engine.gameState
    • engine.next
    • engine._userInfo
  • The engine emits the same events as the one on bustabit.
    • GAME_STARTING
    • GAME_STARTED
    • GAME_ENDED
    • BET_PLACED
    • CASHED_OUT

Frequently Asked Questions

How are the game results generated?

Bustabit is provably fair. If you have the hash of one game, you can calculate the result of that game and all games before it. This concept is explained on bustabit.com

So, the game results are the same as on bustabit?

Yes, as long as you copy a real game hash from a bustabit game.

Are the game results in the same order as on bustabit?

Yes. The game results have to be calculated backwards from the input hash. But the simulation runs in regular order.

Did you copy the engine from bustabit?

No. I didn't copy any code. I made a dumbed-down engine from scratch which behaves as much as possible like the one on bustabit.

Can I send you money?

Yes. You can send me a tip on bustabit. My username is Mtihc. Or via paypal.

Why would I want to send you money?

Because you're nice.

Useful links

bustabit-script-simulator's People

Contributors

mtihc 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.