Mini Game: 🏁 Race Dealer

Hey blazers, today I just come to share with you another mini game:

you are a race bet dealer, and the target is to be the top one.

Screenshot 2024-08-28 10.18.12 AM

how to play?

  • Select how uch you want to bet, and the racer to bet
  • insert the snippet, and see if you won and earn money, lose your bet or broke
  • copy the inserted code to continue playing
  • use the snippet again and paste the code on the top left corner.
    (*) works best using slack chat

{note: preview=yes; insert=no} {lose=0} {loadleague=26} {loaddollars=350} {loadRace=1}Load code here :floppy_disk:: {formtext: name=loadcode; default=no save} {endnote}
{note: preview=no; insert=no}
{if: loadcode = "no save"} {else}
{codeLoaded=base64decode(loadcode)}
{dollarscode=codeLoaded} {leaguecode=codeLoaded} {Racecode=codeLoaded}
{splitcodeIniC=search(dollarscode,"ñC")} {preloaddollars=substring(dollarscode, splitcodeIniC+2, 6)}
{splitcodeIniB=search(leaguecode,"ñB")} {preloadleague=substring(leaguecode, splitcodeIniB+2, 3)}
{splitcodeIniA=search(Racecode,"ñA")} {loadRace=substring(Racecode, splitcodeIniA+2, 1)}
{loaddollars=preloaddollars+ 0}
{loadleague=preloadleague+ 0}
{endif}

{LeagueNumber=["A": 1, "B": 2, "C": 3, "D": 4, "E": 5, "F": 6, "G": 7, "H": 8, "I": 9, "J": 10, "K": 11, "L": 12, "M": 13, "N": 14, "O": 15, "P": 16, "Q": 17, "R": 18, "S": 19, "T": 20, "U": 21, "V": 22, "W": 23, "X": 24, "Y": 25, "Z": 26]}
{LeagueLetter=[1: "A", 2: "B", 3: "C", 4: "D", 5: "E", 6: "F", 7: "G", 8: "H", 9: "I", 10: "J", 11: "K", 12: "L", 13: "M", 14: "N", 15: "O", 16: "P", 17: "Q", 18: "R", 19: "S", 20: "T", 21: "U", 22: "V", 23: "W", 24: "X", 25: "Y", 26: "Z"]}
{HorsesNames=["Thunder", "Lightning", "Eclipse", "Majesty", "Blaze", "Spirit", "Storm", "Midnight", "Shadow", "Apollo", "Comet", "Phoenix", "Dancer", "Champion", "Whisper", "Galaxy", "Noble", "Rebel", "Sundance", "Mystic", "Ranger", "Bolt", "Legend", "Starlight", "Harmony", "Destiny", "Voyager", "Miracle", "Pegasus", "Glimmer", "Sable", "Frost", "Copper", "Amber", "Jewel", "Onyx", "Sapphire", "Willow", "Meadow", "Aurora", "Raven", "Zephyr", "Orion", "Sky", "River", "Luna", "Solstice", "Nova", "Eternity", "Freedom"]}
{leagueMinimunBet=1300/loadleague}
{lose=0}
{car1={random-text: :robot:, :clown_face:, :alien:, :ghost:, :poop:, :japanese_ogre:, :snowman:, :monkey_face:, :frog:, :zombie:, :vampire:, :fairy:, :troll:, :ninja:}}
{car2={random-text: :robot:, :clown_face:, :alien:, :ghost:, :poop:, :japanese_ogre:, :snowman:, :monkey_face:, :frog:, :zombie:, :vampire:, :fairy:, :troll:, :ninja:}}
{car3={random-text: :robot:, :clown_face:, :alien:, :ghost:, :poop:, :japanese_ogre:, :snowman:, :monkey_face:, :frog:, :zombie:, :vampire:, :fairy:, :troll:, :ninja:}}
{car4={random-text: :robot:, :clown_face:, :alien:, :ghost:, :poop:, :japanese_ogre:, :snowman:, :monkey_face:, :frog:, :zombie:, :vampire:, :fairy:, :troll:, :ninja:}}
{car5={random-text: :robot:, :clown_face:, :alien:, :ghost:, :poop:, :japanese_ogre:, :snowman:, :monkey_face:, :frog:, :zombie:, :vampire:, :fairy:, :troll:, :ninja:}}
{car6={random-text: :robot:, :clown_face:, :alien:, :ghost:, :poop:, :japanese_ogre:, :snowman:, :monkey_face:, :frog:, :zombie:, :vampire:, :fairy:, :troll:, :ninja:}}
{carz={random-text: :robot:, :clown_face:, :alien:, :ghost:, :poop:, :japanese_ogre:, :snowman:, :monkey_face:, :frog:, :zombie:, :vampire:, :fairy:, :troll:, :ninja:}}
{bet25=floor(loaddollars0.25)}
{bet50=floor(loaddollars
0.50)}
{bet75=floor(loaddollars*0.75)}
{bet100=loaddollars}
{speed=[{random-number: min=1; max=3; rounded=yes},{random-number: min=1; max=3; rounded=yes},{random-number: min=1; max=3; rounded=yes},{random-number: min=1; max=3; rounded=yes},{random-number: min=1; max=3; rounded=yes},{random-number: min=1; max=3; rounded=yes}]}
{winner={random-number: min=1; max=5; rounded=yes}}
{moveChar="-"}
{roundwin=0}
{newleague=loadleague}
{endnote}
{note: preview=yes ; insert=no}

:white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square:
:black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square:
RACE DEALER :checkered_flag:
:white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square:
:black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square:

Your target is to reach the league A, by bet on the fantasy race and earn as much money as you can.

:dollar: Dollars: {=loaddollars} :trophy: League: {=LeagueLetter[loadleague]} :stadium: Races: {=loadRace}

:white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square:
:red_square:{=car1}:checkered_flag: {if: betselection=":red_square:"} :dollar: ${=amountcheck}{endif}
:blue_square:{=car2}:checkered_flag: {if: betselection=":blue_square:"} :dollar: ${=amountcheck}{endif}
:green_square:{=car3}:checkered_flag: {if: betselection=":green_square:"} :dollar: ${=amountcheck}{endif}
:yellow_square:{=car4}:checkered_flag: {if: betselection=":yellow_square:"} :dollar: ${=amountcheck}{endif}
:purple_square:{=car5}:checkered_flag: {if: betselection=":purple_square:"} :dollar: ${=amountcheck}{endif}
:white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square::white_medium_square::black_medium_square:

(:chart: Minimum Bet: {=leagueMinimunBet})
I'll bet {formmenu: {=bet25}; {=bet50} ; {=bet75}; {=bet100}; default=Choose; name=Amount} dollars on the to {formmenu: default=:red_square:; :blue_square:; :green_square:; :yellow_square:; :purple_square:; name=betselection} racer!
{if: Amount="Choose"}{amountcheck=bet25}{else}{amountcheck=Amount}{endif}
{endnote}

{note: preview=no ; insert=yes}
:red_square:{=car1}
:blue_square:{=car2}
:green_square:{=car3}
:yellow_square:{=car4}
:purple_square:{=car5}
.{wait: delay=+0.3s}.
:red_square:{if: winner=1}{repeat: 4*1}{=moveChar}{endrepeat}{else}{repeat: speed[1]1}{=moveChar}{endrepeat}{endif}{=car1}
:blue_square:{if: winner=2}{repeat: 4
1}{=moveChar}{endrepeat}{else}{repeat: speed[2]1}{=moveChar}{endrepeat}{endif}{=car2}
:green_square:{if: winner=3}{repeat: 4
1}{=moveChar}{endrepeat}{else}{repeat: speed[3]1}{=moveChar}{endrepeat}{endif}{=car3}
:yellow_square:{if: winner=4}{repeat: 4
1}{=moveChar}{endrepeat}{else}{repeat: speed[4]1}{=moveChar}{endrepeat}{endif}{=car4}
:purple_square:{if: winner=5}{repeat: 4
1}{=moveChar}{endrepeat}{else}{repeat: speed[5]1}{=moveChar}{endrepeat}{endif}{=car5}
.{wait: delay=+0.3s}.
:red_square:{if: winner=1}{repeat: 4
2}{=moveChar}{endrepeat}{else}{repeat: speed[1]2}{=moveChar}{endrepeat}{endif}{=car1}
:blue_square:{if: winner=2}{repeat: 4
2}{=moveChar}{endrepeat}{else}{repeat: speed[2]2}{=moveChar}{endrepeat}{endif}{=car2}
:green_square:{if: winner=3}{repeat: 4
2}{=moveChar}{endrepeat}{else}{repeat: speed[3]2}{=moveChar}{endrepeat}{endif}{=car3}
:yellow_square:{if: winner=4}{repeat: 4
2}{=moveChar}{endrepeat}{else}{repeat: speed[4]2}{=moveChar}{endrepeat}{endif}{=car4}
:purple_square:{if: winner=5}{repeat: 4
2}{=moveChar}{endrepeat}{else}{repeat: speed[5]2}{=moveChar}{endrepeat}{endif}{=car5}
.{wait: delay=+0.3s}.
:red_square:{if: winner=1}{repeat: 4
3}{=moveChar}{endrepeat}{else}{repeat: speed[1]3}{=moveChar}{endrepeat}{endif}{=car1}
:blue_square:{if: winner=2}{repeat: 4
3}{=moveChar}{endrepeat}{else}{repeat: speed[2]3}{=moveChar}{endrepeat}{endif}{=car2}
:green_square:{if: winner=3}{repeat: 4
3}{=moveChar}{endrepeat}{else}{repeat: speed[3]3}{=moveChar}{endrepeat}{endif}{=car3}
:yellow_square:{if: winner=4}{repeat: 4
3}{=moveChar}{endrepeat}{else}{repeat: speed[4]3}{=moveChar}{endrepeat}{endif}{=car4}
:purple_square:{if: winner=5}{repeat: 4
3}{=moveChar}{endrepeat}{else}{repeat: speed[5]3}{=moveChar}{endrepeat}{endif}{=car5}
.{wait: delay=+0.3s}.
:red_square:{if: winner=1}{repeat: 4
4}{=moveChar}{endrepeat}{else}{repeat: speed[1]4}{=moveChar}{endrepeat}{endif}{=car1}
:blue_square:{if: winner=2}{repeat: 4
4}{=moveChar}{endrepeat}{else}{repeat: speed[2]4}{=moveChar}{endrepeat}{endif}{=car2}
:green_square:{if: winner=3}{repeat: 4
4}{=moveChar}{endrepeat}{else}{repeat: speed[3]4}{=moveChar}{endrepeat}{endif}{=car3}
:yellow_square:{if: winner=4}{repeat: 4
4}{=moveChar}{endrepeat}{else}{repeat: speed[4]4}{=moveChar}{endrepeat}{endif}{=car4}
:purple_square:{if: winner=5}{repeat: 4
4}{=moveChar}{endrepeat}{else}{repeat: speed[5]4}{=moveChar}{endrepeat}{endif}{=car5}
.{wait: delay=+0.3s}.
:red_square:{if: winner=1}{repeat: 4
5}{=moveChar}{endrepeat}{else}{repeat: speed[1]5}{=moveChar}{endrepeat}{endif}{=car1}
:blue_square:{if: winner=2}{repeat: 4
5}{=moveChar}{endrepeat}{else}{repeat: speed[2]5}{=moveChar}{endrepeat}{endif}{=car2}
:green_square:{if: winner=3}{repeat: 4
5}{=moveChar}{endrepeat}{else}{repeat: speed[3]5}{=moveChar}{endrepeat}{endif}{=car3}
:yellow_square:{if: winner=4}{repeat: 4
5}{=moveChar}{endrepeat}{else}{repeat: speed[4]5}{=moveChar}{endrepeat}{endif}{=car4}
:purple_square:{if: winner=5}{repeat: 4
5}{=moveChar}{endrepeat}{else}{repeat: speed[5]5}{=moveChar}{endrepeat}{endif}{=car5}
.{wait: delay=+0.3s}.
:red_square:{if: winner=1}{repeat: 4
6}{=moveChar}{endrepeat}{else}{repeat: speed[1]6}{=moveChar}{endrepeat}{endif}{=car1}
:blue_square:{if: winner=2}{repeat: 4
6}{=moveChar}{endrepeat}{else}{repeat: speed[2]6}{=moveChar}{endrepeat}{endif}{=car2}
:green_square:{if: winner=3}{repeat: 4
6}{=moveChar}{endrepeat}{else}{repeat: speed[3]6}{=moveChar}{endrepeat}{endif}{=car3}
:yellow_square:{if: winner=4}{repeat: 4
6}{=moveChar}{endrepeat}{else}{repeat: speed[4]6}{=moveChar}{endrepeat}{endif}{=car4}
:purple_square:{if: winner=5}{repeat: 4
6}{=moveChar}{endrepeat}{else}{repeat: speed[5]6}{=moveChar}{endrepeat}{endif}{=car5}
.{wait: delay=+0.3s}.
:red_square:{if: winner=1}{repeat: 4
7}{=moveChar}{endrepeat}{else}{repeat: speed[1]7}{=moveChar}{endrepeat}{endif}{=car1}
:blue_square:{if: winner=2}{repeat: 4
7}{=moveChar}{endrepeat}{else}{repeat: speed[2]7}{=moveChar}{endrepeat}{endif}{=car2}
:green_square:{if: winner=3}{repeat: 4
7}{=moveChar}{endrepeat}{else}{repeat: speed[3]7}{=moveChar}{endrepeat}{endif}{=car3}
:yellow_square:{if: winner=4}{repeat: 4
7}{=moveChar}{endrepeat}{else}{repeat: speed[4]7}{=moveChar}{endrepeat}{endif}{=car4}
:purple_square:{if: winner=5}{repeat: 4
7}{=moveChar}{endrepeat}{else}{repeat: speed[5]7}{=moveChar}{endrepeat}{endif}{=car5}
.{wait: delay=+0.3s}.
:red_square:{if: winner=1}{repeat: 4
8}{=moveChar}{endrepeat}{else}{repeat: speed[1]8}{=moveChar}{endrepeat}{endif}{=car1}
:blue_square:{if: winner=2}{repeat: 4
8}{=moveChar}{endrepeat}{else}{repeat: speed[2]8}{=moveChar}{endrepeat}{endif}{=car2}
:green_square:{if: winner=3}{repeat: 4
8}{=moveChar}{endrepeat}{else}{repeat: speed[3]8}{=moveChar}{endrepeat}{endif}{=car3}
:yellow_square:{if: winner=4}{repeat: 4
8}{=moveChar}{endrepeat}{else}{repeat: speed[4]8}{=moveChar}{endrepeat}{endif}{=car4}
:purple_square:{if: winner=5}{repeat: 4
8}{=moveChar}{endrepeat}{else}{repeat: speed[5]8}{=moveChar}{endrepeat}{endif}{=car5}
.{wait: delay=+0.3s}.
:red_square:{if: winner=1}{repeat: 4
9}{=moveChar}{endrepeat}{else}{repeat: speed[1]9}{=moveChar}{endrepeat}{endif}{=car1}
:blue_square:{if: winner=2}{repeat: 4
9}{=moveChar}{endrepeat}{else}{repeat: speed[2]9}{=moveChar}{endrepeat}{endif}{=car2}
:green_square:{if: winner=3}{repeat: 4
9}{=moveChar}{endrepeat}{else}{repeat: speed[3]9}{=moveChar}{endrepeat}{endif}{=car3}
:yellow_square:{if: winner=4}{repeat: 4
9}{=moveChar}{endrepeat}{else}{repeat: speed[4]9}{=moveChar}{endrepeat}{endif}{=car4}
:purple_square:{if: winner=5}{repeat: 4
9}{=moveChar}{endrepeat}{else}{repeat: speed[5]9}{=moveChar}{endrepeat}{endif}{=car5}
.{wait: delay=+0.3s}.
:red_square:{if: winner=1}{repeat: 4
10}{=moveChar}{endrepeat}{else}{repeat: speed[1]10}{=moveChar}{endrepeat}{endif}{=car1}
:blue_square:{if: winner=2}{repeat: 4
10}{=moveChar}{endrepeat}{else}{repeat: speed[2]10}{=moveChar}{endrepeat}{endif}{=car2}
:green_square:{if: winner=3}{repeat: 4
10}{=moveChar}{endrepeat}{else}{repeat: speed[3]10}{=moveChar}{endrepeat}{endif}{=car3}
:yellow_square:{if: winner=4}{repeat: 4
10}{=moveChar}{endrepeat}{else}{repeat: speed[4]10}{=moveChar}{endrepeat}{endif}{=car4}
:purple_square:{if: winner=5}{repeat: 4
10}{=moveChar}{endrepeat}{else}{repeat: speed[5]*10}{=moveChar}{endrepeat}{endif}{=car5}
.{wait: delay=+0.3s}.

Winner {if: winner=1}:1st_place_medal::red_square: {=car1}{if: betselection=":red_square:" }{roundwin=1}{endif}{endif} {if: winner=2}:1st_place_medal::blue_square: {=car2}{if: betselection=":blue_square:"}{roundwin=1}{endif}{endif} {if: winner=3}:1st_place_medal::green_square: {=car3}{if: betselection=":green_square:"}{roundwin=1}{endif}{endif} {if: winner=4}:1st_place_medal::yellow_square: {=car4}{if: betselection=":yellow_square:"}{roundwin=1}{endif}{endif} {if: winner=5}:1st_place_medal::purple_square: {=car5}{if: betselection=":purple_square:"}{roundwin=1}{endif}{endif}
You bet to {=betselection}{wait: delay=+0.5s}.{if: roundwin = 1}You bet to the big fish! +${=amountcheck}{newdollars=loaddollars + amountcheck}{else}You made a bad decision! -${=amountcheck}{newdollars=loaddollars - amountcheck}{endif}

{if: newdollars < leagueMinimunBet}{lose=1}{endif}{if: newdollars < 1} {lose=1} {endif}{if: lose=1}
:rat::mouse_trap: YOU ARE BROKE :mouse_trap::rat:
:trophy:End league: {=LeagueLetter[loadleague]}
:stadium:Played races: {=loadRace*(27-loadleague)}
{else}

Your are on the game! {random-text: :money_mouth_face:, :money_with_wings:, :dollar:, :hand_with_index_finger_and_thumb_crossed:, :coin:, :credit_card:, :heavy_dollar_sign:}.
:dollar: Dollars: {=newdollars}
{if: loadRace+1>9}{newleague=loadleague-1}{newrace=1}{else}{newleague=loadleague} {newrace=loadRace+1}{endif} {if: loadleague<newleague}:trophy: Now you are on higher league: {=LeagueLetter[newleague]} {endif}

{fixedleague=substring(concat("000", newleague), -3, 3)}
{fixeddollars=substring(concat("000000", newdollars), -6, 6)}
{savehash=concat("ñA", newRace, "ñB", fixedleague, "ñC", fixeddollars)}{savecode=base64encode(savehash)}
:floppy_disk: Saved Code: {cursor}{=savecode}
{endif}
{endnote}

1 Like