Yes I know this, but I want my users to be able to bet on a horse race using virtual cash....when you bet on horseracing in America, you are never really sure what the final odds will be until betting is closed. There can be major swings if you bet early. I want to simulate the pari-mutuel style of betting in order to run a contest.
My plan was to put up a morning line, have people bet, then when the race is closed, change the odds to the actual OFF odds of the race in question, and then people will be paid in virtual cash the same exact amount of money had they bet on the race in real life.
Aren't there a few lines of code that can be added or changed to vBookie.php to have it calculate payouts based on the final odds instead of what the odds were when the person placed the bet?
|