가이드 및 전략

How to Write a Script for Crash Game on BC.GAME

BC.GAME recently rolled out a new version of the site, which slightly changed the logic of the scripts in the game Crash. Let’s remind you of the principle.

1. Create a Configuration Object

This is actually a user input interface, allowing the script to read user-defined variables and make the script run according to different user configurations (bet size, multiplier, etc.). It is always placed at the very beginning of the script.

var config = {
  bet: { value: 1, type: 'number', label: 'Bet' },
  x: { value: 1.98, type: 'number', label: 'Multiplier' }
};

2. Main Function

Next comes the main() function. All of your program logic should be implemented inside the main function, which runs after the user clicks on Run Script, providing you with objects that you can use to interact with the game.

function main () {
  console.log(config.bet.value);
}

3. Game Starting Event

Inside the main() function write methods game.onBet (or game.on("GAME_STARTING", function () {})) and game.onGameEnd where game.onBet—the game is ready to start, you can only guess at this time, game.onGameEnd—game over.

function main () {
  game.onBet = function() {
    console.log('a game is starting')
  }
  game.onGameEnd = function(arrayOfRecentGameObjects) {
    console.log('game over')
    console.log(arrayOfRecentGameObjects[0]); // -> recent game object
  }
}

4. 베팅하기

Inside the method game.onBet we make a bet game.bet. The method takes 2 parameters, the bet size and the desired multiplier. It returns a promise with the value of the multiplier.

game.bet(config.bet.value, config.x.value).then(function(payout) {
  console.log(`Payout: ${payout}`);
  console.log(payout >= config.x.value ? 'Win :-)' : 'Lost :-/');
});

The Sequence of Method Calls

  1. main()
  2. game.onBet
  3. game.bet
  4. game.onGameEnd
  5. promise<number> of game.bet that returns payout

BC.GAME’s Crash Script Complete Code

var config = {  
  bet: { value: 1, type: 'number', label: 'Bet' },  
  x: { value: 1.98, type: 'number', label: 'Multiplier' }
};

function main() {
  log.info("Starting a Strategy for Crash Game");

  game.on("GAME_STARTING", function () {
    game.bet(config.bet.value, config.x.value).then(function(payout) {
      console.log(`Payout: ${payout}`);
      console.log(payout >= config.x.value ? 'Win :-)' : 'Lost :-/');
    })
  });

  game.onGameEnd = function(arrayOfRecentGameObjects) {
    console.log(arrayOfRecentGameObjects[0]); // -> recent game object
    console.log(arrayOfRecentGameObjects); // -> array of recent game objects
  }
}

Here, we should note the following: Before the update, the game.onGameEnd method (event GAME_ENDED) was always triggered, regardless of whether a bet was placed. This allowed users to access an array of recent game objects for analysis and identifying favourable betting opportunities.

However, after the update, this data is only available when a bet is placed, requiring the use of the game.bet method. As a result, it is no longer possible to track “red streaks” without making a bet.

Congratulations to those who successfully utilised this feature before the update! Now, strategies that analyse previous games must include a bet. To minimise risk, you can place a min bet with a minimum multiplier of 1.01 (with a 98.02% probability of winning) to access this data:

game.bet(currency.minAmount, 1.01);

Captain Coinflip

안녕하세요! 제 이름은 베니 카피탱커(Benny Capitanker)입니다 — 하지만 대부분 저를 그냥 캡틴 코인플립(Captain Coinflip) 이라고 부르죠. 이 사이트의 운영자이자, 최신 소식과 유용한 팁, 그리고 수년간 쌓아온 노하우를 전하는 사람입니다. 온라인 카지노 세계에 발을 들인지 벌써 8년이 되었고, 처음 시작했을 때의 열정은 지금도 그대로입니다. 어릴 때부터 게임을 좋아했고, 숫자와 확률에 강한 저는 언제나 새로운 전략을 연구하고 있어요 — 그 전략이 바로 당신의 승리를 도울 열쇠가 될 수도 있죠. 언젠가 완벽한 승리 공식을 당신에게 전해줄 날이 오기를 꿈꾸며, 그때까지는 저와 함께 현명하게 플레이해봐요.

View Comments

최근 게시물

Retro Trader (BGaming) – 리뷰 및 무료 플레이

Game Provider: BGaming Return to Player (RTP): 99.0%

24 4월 2025

Sugar Mix 슬롯 (BGaming) – 리뷰 및 무료 플레이

Sugar Mix by BGaming brings a tasty slot packed with sugar, spins, and steady crypto…

22 4월 2025

AI 크래시 프레딕터: Crash 게임 결과 예측하기

Crash games like BC.GAME's Crash, Aviator, and JetX are very popular. Players bet money and…

21 4월 2025

Crack Open the Fun with Roobet’s Easter promos

April is bursting with surprises, rewards, and egg-stra special challenges at Crypto’s Fastest Growing Casino.…

28 3월 2025

크래시 전략 시뮬레이터

This simulator helps you test various crash gambling strategies using virtual settings. You can adjust…

27 3월 2025

암호화폐가 없어도 문제없다: Roobet x Swapped.com 소개

Want to start playing at Roobet but don’t have crypto? No stress—Roobet has partnered with…

26 3월 2025

This website uses cookies.