Choose your odds

A pretty small game made for the Trijam #112 made in about 2 hours and 30 minutes. 

How to play:

Use your mouse to choose how much money to bet. The higher your bet, the most likely it is for you to lose: however, the minimum chance of winning is about 50% always!

Source code:

You can check it on our Github!

Made using Godot Engine 3.2.2 Stable Official, and JFXR for the sound effects.

PlatformsWindows, macOS, Linux, HTML5
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorEscada Games
Tags2D, betting, Casual, godot-engine, Open Source, Short


Download NowName your own price

Click download now to get access to the following files: 12 MB 12 MB 13 MB 13 MB 13 MB


Log in with to leave a comment.


Nice! What is your chance of winning formula?

 Hi, thanks!
 So, I actually had to look at the source code to remember the formula:

  • First a base probability is calculated. If I recall correctly, this is what the game displays:
    self.baseProbabilityOfWinning = 50 + clamp(50 * (1 - global.betValue /, 0, 49.99)
  • Then, behind the curtains, another probability is calculated, taking into account the chance we just calculated:
    self.actualProbabilityOfWinning = self.baseProbabilityOfWinning - 15*(numberOfWins / totalNumberOfMatches) + 25 * (numberOfLosses / totalNumberOfMatches)
    So, basically, if the player wins too much it becomes harder to keep winning. Also, if instead the player loses too much, it's easier to win. 

 Yeah, the presented probability isn't the real probability: the game makes itself easier or harder depending on how lucky or unlucky the player is. Interestingly, I think nobody noticed this!

Thank you!

easy 500k