Author

Topic: Crazy Roulette -- New Game - Win the max prize!!! (Read 2914 times)

newbie
Activity: 57
Merit: 0
i didnt wanted to be rude but i must say u dont know much about coding i could turn that into a real roulette like casino in 5 mins or do you think that i need to make a drawing to be a wheel?no ... just for your information, real roulettes in casino i mean virtual ones are based on probabilities like this just a little more complex and with numbers where you bet, interface is just something to show to users.
Now if you dont have anything constructive to say, leave it alone.
Im tired of all this haters that have too much free time ...
Thanks...
legendary
Activity: 1428
Merit: 1001
Okey Dokey Lokey
It's still a lottery, Your "wheel" is nothing more than a random number generator
newbie
Activity: 57
Merit: 0
Sorry but i didnt said this is a roulette like casino this is more like a spinning wheel where it randomly give probabilities to each address. The crazy roulette is the name of the game that i did create.When i mean roulette im thinking of the wheel that randomly selects a position not a casino roulette where you can bet in some numbers...
Anyone interested? i will be adding a new version which is the serious version with more spins like 2500 and with a buying ticket of 0.25 btc
thanks...
legendary
Activity: 1428
Merit: 1001
Okey Dokey Lokey
This is a Raffle if not a Lottery, This is Not a roulette.
newbie
Activity: 57
Merit: 0
Crazy Roulette

The Crazy Roulette [Fun version] is very simple,the registrations for each round close every friday of each week.Everyone can join in the fun version with the price of each ticket being 0.10 btc each, dont send more or less than that or your registration will not be accepted.At saturday of each week, the winner will be announced and i will post here each weeks winner and his earnings and also a proof of payment which you will be able to see with blockexplorer.

you can buy multiple tickets since this a roulette it will increase your opportunity of winning the max prize.

So how does it work?
After the registrations are closed, every address has a number which is the number that corresponds to the order they bought the tickets.The roulette which is random and set with a number of spins defined by me in the fun version will add numbers to an array randomly, the person with the biggest number each week is the winner.

New version will appear if there is interest ...
To make it fair i will keep a 2% value of total max prize every week, so that i feel that is my work is appreciated and to create new games ...

[Fun version]
Number of spins = 10
ticket price = 0.10 btc
[Serious version]
Number of spins = 2500
ticket price = 0.25 btc

Dont send more or less the the ticket price or you will not be accepted.Thanks



Actual Prize:
Fun Version:
0 btc
Serious Version:
0 btc

Updated everyday ...

Steps

1. Send 0.10 btcs to:
Code:
157Gzuh97vviDNCQnLNTe2jGawdDK8HcoA
For fun version ...
Code:
1CXARkxE4p2kp75duhRCjtHzi89Gm44hJ3
For serious version ...

watch: http://blockexplorer.com/address/157Gzuh97vviDNCQnLNTe2jGawdDK8HcoA
watch: http://blockexplorer.com/address/1CXARkxE4p2kp75duhRCjtHzi89Gm44hJ3
2. Wait until Saturday of the winners announcement.

source code:
Code:
#Dont modify/distribute without the author permission.


def addr_array(total):
    addresses = [0 for i in range(total)]
    return addresses;
  
def random_number(total_spins,addresses):
   i = 0;
   j = 0;
   while(j      while(i          random_pos = randint(0,total-1);
          addresses[random_pos] +=1;
          i = i + 1;
      j = j + 1;
   return addresses;

def check_winner(max,address,total):
    count = 0;
    for i in range(total):
       if(address[i] == max):
          print("%d - Address %d with max value of %d ...\n" % (count,i,max));
          count +=1;
    return count;
def get_winner(total,address):

   max = 0;
   pos = 0;
   i = 0;
   winners = [];
   count = 0;
   while(i      if(address[i]>max):
         max = address[i];
         pos = i;
      i=i+1;
   count = check_winner(max,address,total)
   if(count <2):
       print("The winner is %d with max %d \n" % (pos,max));
   else:
       for num in range(total):
         if(address[num] == max):
             winners.append(num);
       print("The winner is %d with max %d after a close fight with %d more addresses \n" % (winners[randint(0,count-1)],max,count));
      
 get_winner(total,random_number(total_spins,addr_array(total)));


Any question just tell me ...
Thanks !!!
Jump to: