You will write functions for calculating odds and creating random numbers for a horse racing game. When program starts, create a thread for each race that runs once a [url removed, login to view] words each race is 1 minute long. 5 different races so you will have 5 threads. The **RNG(Random # Generetor)** is a standalone thread that runs continuously no stop. You have a 100 horses and randomly select which 6 horses out of this 100 stock race in the upcoming race. Each race has 20 steps so you need 6 * 20 RNG per race. The race starts at step 1 and goes to step 20 which is finish line. Each step (RNG) is a value between 1 and 6 (a dice) so the horse moves relative that many. So at any moment the aggregate of the dice values decides which horse is where at any given step.
Two types of Bets:
Which horse will be 1st so you need to calculate odds for each of the 6 horses and the numbers will be like 7 to 1 or 10 to 1 so if you bet 1 you get 10 back.
Or which two horses will be 1st and 2nd so you will have to compute the odds for horses 1-2, 1-3, 1-4, 1-5, 1-6, 2-2, 2-3, 2-4, 2-5, 2-6, 3-4, 3-5, 3-6,4-5, 4-6, 5-6. If you bet on 1-5 and the odds at 120 to 1 and you bet 10,
you win 120 * 10 points.
The interface functions will pass you a structure for either type of a bet. Also need a Function to pass you a structure so you put in the RNG for each horse so like:
int racer1; // value between 1 and 6
int racer2; // value between 1 and 6
int racer3; // value between 1 and 6
int racer4; // value between 1 and 6
int racer5; // value between 1 and 6
int racer6; // value between 1 and 6
You will log all rondomly generated #s into a **Jet database in windows 2003** server and provide **management screens** to show the random number distributions, tests, etc. to ensure the system is 100% fair and working properly. **Ill provide you all formulas you will need.**
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
Windows 2003 Server
Windows 2000 .Net Server