Skip to content

Testing strategies of betting on horse races in GTA Online. Calculating adjusted advantage compared to the odds and using Kelly Criterion to determine bet size, then simulating games.

Notifications You must be signed in to change notification settings

Maxim-Mazurok/gtao-betting

Repository files navigation

[WIP] GTA 5 Online Betting Strategy

Testing strategies of betting on horse races in GTA Online. Calculating adjusted advantage compared to the odds and using Kelly Criterion to determine bet size, then simulating games.

Also automates betting in the game using python. Game is expected to run in Windowed mode with 1280x1024 resolution and English language.

Both are working, but still work in progress.

Getting Started

  1. git clone https://github.com/Maxim-Mazurok/gtao-betting
  2. cd gtao-betting

Simulation

  1. nvm i - optional
  2. npm ci
  3. npm test

Automation

  1. cd automation
  2. pip install -r requirements.txt
  3. python main.py

See also my personal spreadsheet: https://docs.google.com/spreadsheets/d/1z27GEyrFVnBBZcCJ-w2QDZS9LKDiZfK2wvD02UxifzE/edit?usp=sharing

Credits & Prior Art

Notes

  • Seems like the game doesn't actually use suggested chances adjustments. For example, for 371 games, the average adjusted odds for evens were 48% but the actual win rate of evens was 65%, see Podium Frequency Chart - 2
  • It looks like adjustChancesToFirstHorse + getXthFavourite(0) results in Adjusted Expected Wins to follow Actual Wins. But it doesn't work with getBetKelly, so maybe I figured out how to calculate odds for the first best horse, but not for the rest. Maybe try a strategy that re-allocates chances per group?
    • It seems like who you bet on will affect the winner. Need to run actual tests
      • Ran tests betting on the 3rd fav. It did win much, but it did shift odds for the 2nd category (3rd and 4th faves) from the 1st category (1st and 2nd faves). When simulating 1st fav strategy on that data - it ends up loosing a lot, unlike when testing on the fav 1st data.

ToDo

  • Try calculating average adjusted odds for each horse based on all possible combinations in the game? Doesn't make much sense tho because the adjustment doesn't seem to be used by the game

About

Testing strategies of betting on horse races in GTA Online. Calculating adjusted advantage compared to the odds and using Kelly Criterion to determine bet size, then simulating games.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published