[ema|emd] is no more
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Tricky Tray - Rules

4 posters

Go down

Tricky Tray - Rules Empty Tricky Tray - Rules

Post  darknesses-daughter Sat Aug 14, 2010 11:44 pm

Tricky Tray is a competition.

Heres how it works.

There are 10-14 set prizes and 1 "special prize" (which is worth the most and will be specified). Players buy 'tickets' at 200g each. For every 100 tickets they buy, they recieve 1 "special ticket". Players put their 'tickets' on SPECIFIC prizes (you just post 35 on XX, 26 on YY, 41 on ZZ, etc.). All "special tickets" automatically go into the "special prize", only "special tickets" can be used for the "special prize". After the ticket are sold, an excel spreadsheat with the players username and how many tickets they have on each prize will be posted as well as the code with this same information in it. Players have 24 hours to double check that this information is correct. After this 24 hour period, the program will be run. A screen shot of the results will be posted to ensure transparency.

The total value of the tickets sold may excede the total value of the prizes. Any extra amount will be left inn R O J Storage (guild storage account).

Heres how the winner is chosen (a java code)
The first 800 lines of code makes lists (ArrayLists), one for each prize. When player x buys y number of tickets on prize z, a line is added to the list for prize z saying x (as an integer, i.e. 050, 100, 999, etc), a space, an then their username. After the lists are formed, a method is called and the ArrayList, the total number of tickets in the list, and the name of the prize (armbrace, etc) are sent as parameters. An array (like a list with a certian number of spaces) is then made with the number of spots equal to the number of tickets in that prize. The program then goes through each line of that list, determines the number of tickets that person bought (the first 3 digits (the 050, 100, 999)), and picks that many RANDOM empty spaces in the Array that it inserts the username of the person who bought those tickets). Then, a random number is picked (using Java's math.random() class), multiplied by the total number of tickets (as the program picks a number between 0 and 1). The username in that index (spot number) of the array is the winner of that prize. The program outputs the name of the prize and the winner. This is repeated for all of the prizes.


Lets try an analogy to see if this clarifies this whole thing:
THe way this works is essencially like if there was a hat with a lot of slips of paper in the hat. Each slip of paper has the uername of the person who bought it on it. Each hat is a different prize and each slip of paper is 1 ticket. When you buy tickets, your putting your names on slips of paper. When you chose which SPECIFIC prizes to put your tickets on, then your dividing your slips of paper into those hats. (you can split up how you devide your tickets into prizes , how many slips of paper you put in which hats). The program shakes the hat and pulls out one slip of paper (ticket) per hat.


Last edited by darknesses-daughter on Sun Aug 15, 2010 1:41 pm; edited 1 time in total

darknesses-daughter
Level 2

Posts : 5
Points : 29
Join date : 2010-07-30

Back to top Go down

Tricky Tray - Rules Empty Re: Tricky Tray - Rules

Post  Markus Clouser Sat Aug 14, 2010 11:46 pm

Checked details and approved.

Markus Clouser
Markus Clouser
Alliance Leader

Posts : 822
Points : 1663
Join date : 2009-11-02

https://ema-hm.darkbb.com

Back to top Go down

Tricky Tray - Rules Empty Re: Tricky Tray - Rules

Post  Brighid The Vulcan Sun Aug 15, 2010 1:19 am

i dont get it:

Does the player with the highest amount of tickets on a prize wins it??
When is the programm run? after 24 hrs it says even if only 1 participates - so he gets brace and all others by spending some tickets there??
Who checks the programm? How can a player check if you dont run it several times?
What happens with the gold thats put in Roj storage? is that your profit?

Brighid The Vulcan
Brighid The Vulcan
Level 13

Posts : 58
Points : 117
Join date : 2010-06-22

Back to top Go down

Tricky Tray - Rules Empty Re: Tricky Tray - Rules

Post  Markus Clouser Sun Aug 15, 2010 1:45 am

Brighid The Vulcan wrote:i dont get it:

Does the player with the highest amount of tickets on a prize wins it??
It seems they run it through their C++/Java (?) program which picks the name, the ticket and the prize.
Brighid The Vulcan wrote:Who checks the programm? How can a player check if you dont run it several times?
Good question.
Brighid The Vulcan wrote:What happens with the gold thats put in Roj storage? is that your profit?
Sadly yes. Neutral
Markus Clouser
Markus Clouser
Alliance Leader

Posts : 822
Points : 1663
Join date : 2009-11-02

https://ema-hm.darkbb.com

Back to top Go down

Tricky Tray - Rules Empty Re: Tricky Tray - Rules

Post  darknesses-daughter Sun Aug 15, 2010 11:14 am

The program can only be run once per tricky tray or else to ensure that it isnt being run to make one person win eveything.

I can attach the full program if you would like (its 1000 lines), but i added how it works to the first post

darknesses-daughter
Level 2

Posts : 5
Points : 29
Join date : 2010-07-30

Back to top Go down

Tricky Tray - Rules Empty suggestion

Post  Lucky Sun Aug 15, 2010 2:56 pm

I would suggest that the monies over and beyond ie profit be added to the next contest for larger prizes ect. as
the lottery has done Smile

Lucky
Level 1

Posts : 1
Points : 3
Join date : 2010-08-15

Back to top Go down

Tricky Tray - Rules Empty Re: Tricky Tray - Rules

Post  darknesses-daughter Sun Aug 15, 2010 4:32 pm

that suggestion will be taken into consideration should there be future tricky trays

darknesses-daughter
Level 2

Posts : 5
Points : 29
Join date : 2010-07-30

Back to top Go down

Tricky Tray - Rules Empty Re: Tricky Tray - Rules

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum