# Functions
CalculateOdds computes the betting odds for a snail based on the total pool and snail's pool.
DeleteSnailAfterRace marks a snail to be removed from the database after the race is finished.
GeneratePunter creates a new punter with a default budget and random preferences.
GenerateSnail generates a random snail with random stats and a random type.
GetSnails retrieves all snails owned by a user from the database.
HostRace initialises and starts a new race with given parameters.
InitializeRaceManager sets up a new game state with race manager.
JoinRace allows a user to add a snail to a race during the joining phase.
PlaceBet allows a user to place a bet on a snail in a specific race.
SetupSnailraceDB initializes the database and sets up the environment for the snail racing game.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants to represent the states of a race.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Punter Preferences.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Snail types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants to represent the states of a race.
Constants to represent the states of a race.
Constants to represent the states of a race.
Constants to represent the states of a race.
Constants to represent the states of a race.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Punter represents a participant with a budget and preferences.
Race struct represents a single racing event.
RaceManager manages the races and their states.
RaceState holds all data related to the state of a race.
No description provided by the author
SnailRaceLink struct links a snail to a race with a specific betting pool.
UserBet struct represents a bet made by a user on a snail.
# Type aliases
AchievementCallback defines a callback function type for when an achievement is unlocked.
StateChangeCallback defines a function type that handles changes in race state.