>> (p.1)
    Author Topic: PLAYTIN JavaScript Gambling Bot - post your bot and get free BTC  (Read 8499 times)
    playtin (OP)
    Full Member
    ***
    Offline Offline

    Activity: 201
    Merit: 101


    https://playt.in


    View Profile WWW
    November 16, 2013, 08:40:33 PM
    Last edit: November 18, 2013, 11:58:54 AM by playtin
     #1


    PLAYTIN JavaScript Gambling Bot


    We are proud to announce that we have enabled the PLAYTIN JavaScript Gambling Bot.
    Now you can play most of our games by coding your own bot in JavaScript.
    The bot is running in your browser.

    Bot competition - free BTC
    We are sure that you can write way better bots than the above examples.
    Post the source of your bot with some description about how it works, maybe how much you have earned.
    If you attach your PLAYTIN anonymous account id (looks like this [xxxxxxxx], don't post your account key!) and your bot is clever and unique we will send you some reward towards your PLAYTIN wallet. Bonus points if your bot works for multiple games Wink

    How it works
    Select the your game of choice on https://playt.in
    Open the bot by clicking on the ƒ() button.
    Enter your bot code in the editor.
    You bot will be used by calling the callback function.
    By clicking start the bot will be activated.
    Global variables in your bot will be reset every time you stop your bot.



    Example 1: Keno martingale:
    Code:
    function keno_bot()
    {
      if(last()) bet(1);/ won, restart at 1
      else bet(bet()*2);/ lost, double the bet
      return "play";
    }

    Example 2: Roulette martingale on red:
    Code:
    var b=1;
    function roulette_bot()
    {
      if(last()) b=1;
      else b*=2;
      set("R",b);
      return "spin";
    }

    Function documentation
    Code:
    common functions
    log()/ log some data to the logging window
    last()/ winning amount of the last game

    Crazy Dice
    dice_bot()

    bet()  // get current bet amount
    bet(v)/ set current bet amount to v

    win()  // get desired win amount
    win(v)/ set desired win amount to v

    return "lo";/ roll lo
    return "hi";/ roll hi
    return;/ stop the bot

    Keno
    keno_bot()

    bet()  // get current bet amount
    bet(v)/ set current bet amount to v

    num1()  // get 1st selected number
    num1(v)/ set 1st selected number to v
    num2()  // get 1nd selected number
    num2(v)/ set 1nd selected number to v
    ...
    num10()  // get 10th selected number
    num10(v)/ set 10th selected number to v

    return "play";/ start
    return;/ stop the bot

    Red&Blue
    redblue_bot()

    bet()  // get current bet amount
    bet(v)/ set current bet amount to v

    startx()  // get x of the current start position
    startx(v)/ set x of the current start position to v

    starty()  // get y of the current start position
    starty(v)/ set y of the current start position to v

    return "red";/ bet on red
    return "blue";/ bet on blue
    return "both";/ bet
    return;/ stop the bot

    Roulette
    roulette_bot()

    get(key)/ get the amount on field 'key'
    set(key,v)/ set the amount on field 'key' to v

    num1()/ get winning number of the last game (-1 if undefined)
    num2()/ get winning number of the game before the last game (-1 if undefined)
    ...
    num12()

    return "clear";/ clear all entries
    return "repeat";/ reload the last stakes
    return "spin";/ start the spin
    return;/ stop the bot

    possible values for key:
      0 0-3   0,3     0,2,3   0,2     0,1,2           0,1    
    1-3     3       2,3     2 1,2     1 1-6     3,6     2,3,5,6       2,5         1,2,4,5       1,4    
    4-6     6 5,6     5 4,5     4       4-9     6,9     5,6,8,9       5,8     4,5,7,8       4,7    
    7-9     9   8,9     8 7,8     7 7-12   9,12   8,9,11,12     8,11   7,8,10,11     7,10  
    10-12 12 11,12 11 10,11 10 10-15 12,15 11,12,14,15 11,14 10,11,13,14 10,13
    13-15 15 14,15 14 13,14 13 13-18 15,18 14,15,17,18 14,17 13,14,16,17 13,16
    16-18 18 17,18 17 16,17 16 16-21 18,21 17,18,20,21 17,20 16,17,19,20 16,19
    19-21 21 20,21 20 19,20 19 19-24 21,24 20,21,23,24 20,23 19,20,22,23 19,22
    22-24 24 23,24 23 22,23 22 22-27 24,27 23,24,26,27 23,26 22,23,25,26 22,25
    25-27 27 26,27 26 25,26 25 25-30 27,30 26,27,29,30 26,29 25,26,28,29 25,28
    28-30 30 29,30 29 28,29 28 28-33 30,33 29,30,32,33 29,32 28,29,31,32 28,31
    31-33 33 32,33 32 31,32 31 31-36 33,36 32,33,35,36 32,35 31,32,34,35 31,34
    34-36 36 35,36 35 34,35 34
    1-12/ first dozen
    13-24/ second dozen
    25-36/ third dozen
    1-18/ lower half
    19-36/ upper half
    X/ top row (3,6,9,12...)
    Y/ middle row (2,5,8,11..)
    Z/ bottom row (1,4,7,10...)
    E/ even
    O/ odd
    R/ red
    B/ black

    If there are open questions feel free to post them in here.

    Have fun

Page 1
Viewing Page: 1