[Windows 8 Development and Hacking] Ricky Divjakovski:
Cant find any free slot machine API's on the net.

Decided to make my own and this is what ive came up with.

If anyone knows of an api or source code for a slot machine please let me know, at the moment the pay table ive had to generate just for a win(per line) is about 150 lines of code.

not posting the source code or any images i have used, this is just a basic build or Aristocrats Big Red machine.

can guarantee a law suit against me if i did.

Progress is on youtube - Big Red by Aristocrat for PC

Here is my current code to generate tokens per win for only 1 line

Id also love suggestions to try, example a much more simple way of generating a win.

if (bet >= 1)
{
// WIN LINE 1
// GET RESULTS FROM PAYTABLE
// CHECK IF 1, 2, 3, 4 OR 5 OCCURANCES
if (p6 == 2) total = total + 2;
if (p6 == 3) total = total + 2;
if (p6 == 2 & p7 == 2) total = total + 12;
if (p6 == 3 & p7 == 3) total = total + 10;
if (p6 == 4 & p7 == 4) total = total + 3;
if (p6 == 5 & p7 == 5) total = total + 2;
if (p6 == 11 & p7 == 11) total = total + 2;
if (p6 == 2 & p7 == 2 & p8 == 2) total = total + 150;
if (p6 == 3 & p7 == 3 & p8 == 3) total = total + 100;
if (p6 == 4 & p7 == 4 & p8 == 4) total = total + 50;
if (p6 == 5 & p7 == 5 & p8 == 5) total = total + 25;
if (p6 == 6 & p7 == 6 & p8 == 6) total = total + 15;
if (p6 == 7 & p7 == 7 & p8 == 7) total = total + 15;
if (p6 == 8 & p7 == 8 & p8 == 8) total = total + 10;
if (p6 == 9 & p7 == 9 & p8 == 9) total = total + 5;
if (p6 == 10 & p7 == 10 & p8 == 10) total = total + 5;
if (p6 == 11 & p7 == 11 & p8 == 11) total = total + 5;
if (p6 == 2 & p7 == 2 & p8 == 2 & p9 == 2) total = total + 600;
if (p6 == 3 & p7 == 3 & p8 == 3 & p9 == 3) total = total + 250;
if (p6 == 4 & p7 == 4 & p8 == 4 & p9 == 4) total = total + 150;
if (p6 == 5 & p7 == 5 & p8 == 5 & p9 == 5) total = total + 100;
if (p6 == 6 & p7 == 6 & p8 == 6 & p9 == 6) total = total + 50;
if (p6 == 7 & p7 == 7 & p8 == 7 & p9 == 7) total = total + 50;
if (p6 == 8 & p7 == 8 & p8 == 8 & p9 == 8) total = total + 30;
if (p6 == 9 & p7 == 9 & p8 == 9 & p9 == 9) total = total + 20;
if (p6 == 10 & p7 == 10 & p8 == 10 & p9 == 10) total = total + 20;
if (p6 == 11 & p7 == 11 & p8 == 11 & p9 == 11) total = total + 20;
if (p6 == 2 & p7 == 2 & p8 == 2 & p9 == 2 & p10 == 2) total = total + 1250;
if (p6 == 3 & p7 == 3 & p8 == 3 & p9 == 3 & p10 == 3) total = total + 1000;
if (p6 == 4 & p7 == 4 & p8 == 4 & p9 == 4 & p10 == 4) total = total + 600;
if (p6 == 5 & p7 == 5 & p8 == 5 & p9 == 5 & p10 == 5) total = total + 400;
if (p6 == 5 & p7 == 6 & p8 == 6 & p9 == 6 & p10 == 6) total = total + 300;
if (p6 == 5 & p7 == 7 & p8 == 7 & p9 == 7 & p10 == 7) total = total + 300;
if (p6 == 5 & p7 == 8 & p8 == 8 & p9 == 8 & p10 == 8) total = total + 250;
if (p6 == 5 & p7 == 9 & p8 == 9 & p9 == 9 & p10 == 9) total = total + 150;
if (p6 == 5 & p7 == 10 & p8 == 10 & p9 == 10 & p10 == 10) total = total + 150;
if (p6 == 5 & p7 == 11 & p8 == 11 & p9 == 11 & p10 == 11) total = total + 50;
// big red combos
// 1 combo
if (p6 == 2 & p7 == 2 & p8 == 1) total = total + 150;
if (p6 == 3 & p7 == 3 & p8 == 1) total = total + 100;
if (p6 == 4 & p7 == 4 & p8 == 1) total = total + 50;
if (p6 == 5 & p7 == 5 & p8 == 1) total = total + 25;
if (p6 == 6 & p7 == 5 & p8 == 1) total = total + 15;
if (p6 == 7 & p7 == 5 & p8 == 1) total = total + 15;
if (p6 == 8 & p7 == 5 & p8 == 1) total = total + 10;
if (p6 == 9 & p7 == 5 & p8 == 1) total = total + 5;
if (p6 == 10 & p7 == 5 & p8 == 1) total = total + 5;
// 3 combos
if (p6 == 2 & p7 == 2 & p8 == 1 & p9 == 2) total = total + 600;
if (p6 == 3 & p7 == 3 & p8 == 1 & p9 == 3) total = total + 250;
if (p6 == 4 & p7 == 4 & p8 == 1 & p9 == 4) total = total + 150;
if (p6 == 5 & p7 == 5 & p8 == 1 & p9 == 5) total = total + 100;
if (p6 == 6 & p7 == 6 & p8 == 1 & p9 == 6) total = total + 50;
if (p6 == 7 & p7 == 7 & p8 == 1 & p9 == 7) total = total + 50;
if (p6 == 8 & p7 == 8 & p8 == 1 & p9 == 8) total = total + 30;
if (p6 == 9 & p7 == 9 & p8 == 1 & p9 == 9) total = total + 20;
if (p6 == 10 & p7 == 10 & p8 == 1 & p9 == 10) total = total + 20;
if (p6 == 2 & p7 == 2 & p8 == 2 & p9 == 1) total = total + 600;
if (p6 == 3 & p7 == 3 & p8 == 3 & p9 == 1) total = total + 250;
if (p6 == 4 & p7 == 4 & p8 == 4 & p9 == 1) total = total + 150;
if (p6 == 5 & p7 == 5 & p8 == 5 & p9 == 1) total = total + 100;
if (p6 == 6 & p7 == 6 & p8 == 6 & p9 == 1) total = total + 50;
if (p6 == 7 & p7 == 7 & p8 == 7 & p9 == 1) total = total + 50;
if (p6 == 8 & p7 == 8 & p8 == 8 & p9 == 1) total = total + 30;
if (p6 == 9 & p7 == 9 & p8 == 9 & p9 == 1) total = total + 20;
if (p6 == 10 & p7 == 10 & p8 == 10 & p9 == 1) total = total + 20;
if (p6 == 2 & p7 == 2 & p8 == 1 & p9 == 1) total = total + 600;
if (p6 == 3 & p7 == 3 & p8 == 1 & p9 == 1) total = total + 250;
if (p6 == 4 & p7 == 4 & p8 == 1 & p9 == 1) total = total + 150;
if (p6 == 5 & p7 == 5 & p8 == 1 & p9 == 1) total = total + 100;
if (p6 == 6 & p7 == 6 & p8 == 1 & p9 == 1) total = total + 50;
if (p6 == 7 & p7 == 7 & p8 == 1 & p9 == 1) total = total + 50;
if (p6 == 8 & p7 == 8 & p8 == 1 & p9 == 1) total = total + 30;
if (p6 == 9 & p7 == 9 & p8 == 1 & p9 == 1) total = total + 20;
if (p6 == 10 & p7 == 10 & p8 == 1 & p9 == 1) total = total + 20;
// 8 combos
if (p6 == 2 & p7 == 2 & p8 == 1 & p9 == 2 & p10 == 2) total = total + 1250;
if (p6 == 3 & p7 == 3 & p8 == 1 & p9 == 3 & p10 == 3) total = total + 1000;
if (p6 == 4 & p7 == 4 & p8 == 1 & p9 == 4 & p10 == 4) total = total + 600;
if (p6 == 5 & p7 == 5 & p8 == 1 & p9 == 5 & p10 == 5) total = total + 400;
if (p6 == 6 & p7 == 6 & p8 == 1 & p9 == 6 & p10 == 6) total = total + 300;
if (p6 == 7 & p7 == 7 & p8 == 1 & p9 == 7 & p10 == 7) total = total + 300;
if (p6 == 8 & p7 == 8 & p8 == 1 & p9 == 8 & p10 == 8) total = total + 250;
if (p6 == 9 & p7 == 9 & p8 == 1 & p9 == 9 & p10 == 9) total = total + 150;
if (p6 == 10 & p7 == 10 & p8 == 1 & p9 == 10 & p10 == 10) total = total + 150;
if (p6 == 2 & p7 == 2 & p8 == 2 & p9 == 1 & p10 == 2) total = total + 1250;
if (p6 == 3 & p7 == 3 & p8 == 3 & p9 == 1 & p10 == 3) total = total + 1000;
if (p6 == 4 & p7 == 4 & p8 == 4 & p9 == 1 & p10 == 4) total = total + 600;
if (p6 == 5 & p7 == 5 & p8 == 5 & p9 == 1 & p10 == 5) total = total + 400;
if (p6 == 6 & p7 == 6 & p8 == 6 & p9 == 1 & p10 == 6) total = total + 300;
if (p6 == 7 & p7 == 7 & p8 == 7 & p9 == 1 & p10 == 7) total = total + 300;
if (p6 == 8 & p7 == 8 & p8 == 8 & p9 == 1 & p10 == 8) total = total + 250;
if (p6 == 9 & p7 == 9 & p8 == 9 & p9 == 1 & p10 == 9) total = total + 150;
if (p6 == 10 & p7 == 10 & p8 == 10 & p9 == 1 & p10 == 10) total = total + 150;
if (p6 == 2 & p7 == 2 & p8 == 2 & p9 == 2 & p10 == 1) total = total + 1250;
if (p6 == 3 & p7 == 3 & p8 == 3 & p9 == 3 & p10 == 1) total = total + 1000;
if (p6 == 4 & p7 == 4 & p8 == 4 & p9 == 4 & p10 == 1) total = total + 600;
if (p6 == 5 & p7 == 5 & p8 == 5 & p9 == 5 & p10 == 1) total = total + 400;
if (p6 == 6 & p7 == 6 & p8 == 6 & p9 == 6 & p10 == 1) total = total + 300;
if (p6 == 7 & p7 == 7 & p8 == 7 & p9 == 7 & p10 == 1) total = total + 300;
if (p6 == 8 & p7 == 8 & p8 == 8 & p9 == 8 & p10 == 1) total = total + 250;
if (p6 == 9 & p7 == 9 & p8 == 9 & p9 == 9 & p10 == 1) total = total + 150;
if (p6 == 10 & p7 == 10 & p8 == 10 & p9 == 10 & p10 == 1) total = total + 150;
if (p6 == 2 & p7 == 2 & p8 == 1 & p9 == 1 & p10 == 2) total = total + 1250;
if (p6 == 3 & p7 == 3 & p8 == 1 & p9 == 1 & p10 == 3) total = total + 1000;
if (p6 == 4 & p7 == 4 & p8 == 1 & p9 == 1 & p10 == 4) total = total + 600;
if (p6 == 5 & p7 == 5 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 400;
if (p6 == 6 & p7 == 6 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 300;
if (p6 == 7 & p7 == 7 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 300;
if (p6 == 8 & p7 == 8 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 250;
if (p6 == 9 & p7 == 9 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 150;
if (p6 == 10 & p7 == 10 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 150;
if (p6 == 2 & p7 == 2 & p8 == 2 & p9 == 1 & p10 == 1) total = total + 1250;
if (p6 == 3 & p7 == 3 & p8 == 3 & p9 == 1 & p10 == 1) total = total + 1000;
if (p6 == 4 & p7 == 4 & p8 == 4 & p9 == 1 & p10 == 1) total = total + 600;
if (p6 == 5 & p7 == 5 & p8 == 5 & p9 == 1 & p10 == 1) total = total + 400;
if (p6 == 6 & p7 == 6 & p8 == 6 & p9 == 1 & p10 == 1) total = total + 300;
if (p6 == 7 & p7 == 7 & p8 == 7 & p9 == 1 & p10 == 1) total = total + 300;
if (p6 == 8 & p7 == 8 & p8 == 8 & p9 == 1 & p10 == 1) total = total + 250;
if (p6 == 9 & p7 == 9 & p8 == 9 & p9 == 1 & p10 == 1) total = total + 150;
if (p6 == 10 & p7 == 10 & p8 == 10 & p9 == 1 & p10 == 1) total = total + 150;
if (p6 == 2 & p7 == 2 & p8 == 1 & p9 == 2 & p10 == 1) total = total + 1250;
if (p6 == 3 & p7 == 3 & p8 == 1 & p9 == 3 & p10 == 1) total = total + 1000;
if (p6 == 4 & p7 == 4 & p8 == 1 & p9 == 4 & p10 == 1) total = total + 600;
if (p6 == 5 & p7 == 5 & p8 == 1 & p9 == 5 & p10 == 1) total = total + 400;
if (p6 == 6 & p7 == 6 & p8 == 1 & p9 == 6 & p10 == 1) total = total + 300;
if (p6 == 7 & p7 == 7 & p8 == 1 & p9 == 7 & p10 == 1) total = total + 300;
if (p6 == 8 & p7 == 8 & p8 == 1 & p9 == 8 & p10 == 1) total = total + 250;
if (p6 == 9 & p7 == 9 & p8 == 1 & p9 == 9 & p10 == 1) total = total + 150;
if (p6 == 10 & p7 == 10 & p8 == 1 & p9 == 10 & p10 == 1) total = total + 150;
if (p6 == 2 & p7 == 2 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 1250;
if (p6 == 3 & p7 == 3 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 1000;
if (p6 == 4 & p7 == 4 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 600;
if (p6 == 5 & p7 == 5 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 400;
if (p6 == 6 & p7 == 6 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 300;
if (p6 == 7 & p7 == 7 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 300;
if (p6 == 8 & p7 == 8 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 250;
if (p6 == 9 & p7 == 9 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 150;
if (p6 == 10 & p7 == 10 & p8 == 1 & p9 == 1 & p10 == 1) total = total + 150;
}

so this is a question but will be converted to a project soon.

please let me know if there are any API's known.