Browse Search Popular Register Upload Rules User list Login:
Search:
Lottery Scratch-Off Ticket

Image:
screenshot of the scene

Author: Xray

Group: Default

Filesize: 2.79 MB

Date added: 2020-03-02

Rating: 5.9

Downloads: 4552

Views: 736

Comments: 29

Ratings: 3

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Must be at least 18 years old to play.





Just kidding! :lol:


MAJOR UPDATE: As per s_noonan's suggestion, each time you stop and then start Algodoo, the prize panels get shuffled. Now you won't quickly get bored scratching the same lottery ticket over and over and over and over again! ;)
Last edited at 2020/03/06 22:44:45 by Xray
Please log in to rate this scene
edit
Similar scenes
Title: Scratch and Lose
Rating: 5.625
Filesize: 231.09 kB
Downloads: 479
Comments: 6
Ratings: 2
Date added: 2020/03/14 10:23:25
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: new lottery machine with 100 balls
Rating: 5
Filesize: 48.25 kB
Downloads: 629
Comments: 0
Ratings: 1
Date added: 2018/02/04 12:02:18
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Lottery example scene.
Rating: 7.75
Filesize: 78 kB
Downloads: 432
Comments: 2
Ratings: 4
Date added: 2008/10/27 20:28:50
Made with: Phun
Rating: rated 7.8
download
Title: LOTERY!
Rating: 5
Filesize: 196.61 kB
Downloads: 548
Comments: 0
Ratings: 1
Date added: 2010/10/29 09:09:57
Made with: Phun
Rating: rated 5
download
Title: LOTTERY
Rating: 5
Filesize: 41.38 kB
Downloads: 678
Comments: 0
Ratings: 1
Date added: 2010/03/12 23:28:52
Made with: Phun
Rating: rated 5
download
Title: a basic lottery
Rating: 5
Filesize: 64.37 kB
Downloads: 603
Comments: 0
Ratings: 1
Date added: 2011/01/20 00:33:49
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Responses to this scene
show list
Title: Scratch and Lose
Rating: 5.625
Filesize: 231.09 kB
Downloads: 479
Comments: 6
Ratings: 2
Date added: 2020/03/14 10:23:25
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
i wish algobucks were real currency.. :sad:
Nicely done.:tup:
You need to publish the odds of winning and the expected value of the ticket. I used to know how to calculate that stuff.
One modification might be to randomize the positions of the text boxes when the sim starts running by using a "run once" randomizing routine.
s_noonan said: "One modification might be to randomize the positions of the text boxes when the sim starts running by using a "run once" randomizing routine. "

Xray replied: "You must have read my mind, Steve. That's exactly what I planned to do for the next update.

Thanks!"
xaxexx said: "i wish algobucks were real currency.. :sad: "

Xray replied: "Algobucks ARE real currency (actually they are "E-currency"). The problem is, they are totally worthless!" :lol:
This scene could be an educational scene. If you started the user off with a bunch of Algobucks, and then charged a little bit more than the expected value of a ticket for each time he plays, then the user would loose all his money over time. The only way he could win would be to stop playing as soon as gets ahead. The Lottery is taxes for the mathematically challenged.

Making a random number generator without substitution may be tricky. One way to do it would be to start out with an array of numbers from 1 to 9 and then remove one item of the array at a time in random order and then put that item in a new array.

P.S. Look in the "Shuffle" box in the Deck of Cards scene for random generation without substitution.
Last edited at 2020/03/03 10:06:56 by s_noonan
"The only way he could win would be to stop playing as soon as gets ahead." Show me a gambler who does that! (rhetorical statement). As soon as they begin to win a little, they rationalize that they are on a winning streak, and are compelled to continue gambling because they are due to hit the jackpot at any time. After they have lost their entire family fortune, including their house, their car, their wife, and the saddest thing of all, their dog, they may even attempt to take their own life. The people who usually lose the most are the ones who can afford it the least. Sad but true.

Anyhow, you must be reading my mind again (will you please stop doing that!!!). LOL. I actually was thinking about that Deck of Cards scene long before you mentioned it because I remembered that it has a randomizer which might be a perfect fit for this scene. I will take a look at it.

Thanks again.
According to my calculations there is a 25% chance of winning something and that is evenly divided by the 3 money categories. I figure the expected value of a ticket is $92.50. If you sold tickets for $100, then users should slowly loose on average. You can encourage an honor system so that users pay you their losses.
Last edited at 2020/03/03 23:16:31 by s_noonan
I doubt that Algoryx would allow such a thing. :lol:
Nice update. Works flawlessly.:tup:
I was wondering what you were going to say about it. Thanks! :)

Edit: As you can see in my code, I started out making an array of text boxes of which I was planning on shuffling, but after realizing that the shuffle function could be done in a straightforward and simple way (without using an array, since there are only 9 positions) I opted to use the simple method of direct data transfer from one global variable to another. Each time Algodoo starts running, a random number between 1 and 5 determines how many times the text boxes get shuffled. They get shuffled sufficiently enough that most people would not be able to mentally keep track of the various shift patterns that the game produces. I actually like the way that I ended up doing the shuffle.
Last edited at 2020/03/08 02:10:21 by Xray
Yes, I noticed. That's a very concise way of doing it.

Your next mission, should you choose to accept it, is to start the user off with $1000 and charge the user $100 per ticket. The wining amount for each ticket can be determined by summing the (3) selected items. For example, 1200,200, or 210 would be a $200 winner. This message will self-destruct in 5 seconds (here is where smoke starts pouring out of your PC).
Time to go bankrupt! :lol:
Does anyone else besides me hear the Mission Impossible theme song each time I open these comments? :o
s_noonan said: "Your next mission, should you choose to accept it, is to start the user off with $1000 and charge the user $100 per ticket..... (and more.....)."

My reply: That's a great idea, and I think that it would be fun to work on, but I'm a little tired of this scene, and I am currently working on a different one which I plan to publish on the next anniversary of my birthday. If you feel so inclined, you are welcome to embellish my Lottery Ticket scene, as mentioned above, and then publish it. You and I would split the profits, 60/40.


(Just kidding of course. My take would be 80%).
Thanks for your generous offer. I may take you up on it.
i won 1000 algobucks.
not lying.
Whoopee
Why do I suddenly want to make algobucks a real thing in the game now
alright im makin a scene stand back everyone
Quote: "Why do I suddenly want to make algobucks a real thing in the game now"

Reply: I have no idea because I cannot read your mind.

Quote: "alright im makin a scene stand back everyone"

Reply: Why do we need to stand back? Will your scene make our computers explode? :o
is there a way you could make it so that the money would show up on like some other square so you know how much you have and that you could use it to buy more larger (or smaller) scratchers :coolgrin:
also could i copy this scene?
pb10 asked: "is there a way you could make it so that the money would show up on like some other square......"

Answer: Yes, of course. But if you ask me will I do it, the answer is no.

pb10 asked: "also could i copy this scene?"

Answer: Of course you can copy it. You can copy any of the thousands of scenes that are in the Algobox archive. But don't you dare copy anyone's scene and then upload it back onto Algobox as if you created it! And, as I have said numerous times, just giving credit to someone is NOT the same as asking permission from the original owner of the scene. And that brings up a different issue. So many scenes here on Algobox have been copied, modified, and then reuploaded by other people, that it sometimes becomes impossible to know who owns what. Was that blue marble that you copied originally created by s_noonan or by Xray? Or was it created by some user back in 2009 when Algodoo was a newborn baby? So, can you see the problem with copying and then reuploading any scene here on Algobox? If you are created, try making your own scratch-off lottery ticket scene. Then you can make it work in any fashion that you want it to. It will be YOUR creation instead of something you copied from someone else.
Wow, I have played this for three times without cheating, each getting a different positive amount of Algobucks, and have NEVER ever hit any LOSER tiles

Some suggestions on how to improve this:
- Maybe you could try to make the styles (color, text color, text font, etc.) of the boxes change depending on what are written on them
- (a pretty evil suggestion) Or maybe you could replace (some of) the LOSER tiles with some arbitary values of Algobucks, that, could be small or large, but only appears once, making them useless in terms of actually winning any prize :devil:
Last edited at 2020/05/14 20:29:10 by AMROfficalLime
AMROfficalLime -- Thanks for the suggestions, but I don't plan to make any changes to it. Sorry...
Xray Good Lottery Scrath Card,lol my dad felled for it xD
XxxMrAlgodoo123 -- Thanks!
I got two 1000s and a 100.:D Also this is super cool!
Thanks!
Yes I can but it's not a scene that I want to make at this time. Maybe some time down the road.