Closed lcox74 closed 1 year ago
After the 10 seconds of the Race: Open
stage, the message changes to the following:
I haven't handled the no-bets
or dont-fill
flags. I also havent handled snail odds.
I've decided to use the modal to allow the user to submit how much they want to bet. It needs some rework but it looks like the following:
I didn't like the modal and went back to the 3 buttons (5g, 10g, 20g)
After the race entry has been open for
10 seconds
it will close and display the entrants for the race. This is the "betting" phase, where other users can place bets on the entrants to win rewards. This phase lasts for 30 seconds and will display a drop down form of the entrants and how much to bet on (5g, 10g, 20g) as defaults. By selecting the form you can make multiple bets, but you can't undo a bet.10 seconds
30 seconds
of Betting stage (nono-bets
flag)dont-fill
flag)Listing Entrants
The race message must include a list of the racing snails (along with their owner). It is very important to also include the Odds for each snail as well, this should be calculated using the following formula:
Flags
In this stage it's also very important to handle 2 of the flags when hosting:
no-bets
: When this is set the betting phase doesn't include any betting UI or information (odds should still be shown). The phase will also be shorter, down to 10 seconds instead of 30 seconds.dont-fill
: If this is set, then additional snails will not be added to the race when there is less than 4 snails.