Page 1 of 1

Bobbing for Apples

PostPosted: Sun Oct 27, 2019 9:54 am
by bookworm
Image

Gather round the washtub, it's time to bob for apples! This is a subconscious staple of autumn celebrations, even if you've never actually seen anyone do it in real life. I never have. But even so I know you can't have a Fall Festival without it! This isn't a competition and there are no prizes, it's just for fun!

Click here to start bobbing!

Virtual explanation:
You get one minute to bob for as many apples as you can. Each bob takes ten seconds, so you get six bobs. See how many apples you can come up with!

Technical explanation:
When you press the bob button JavaScript simulates a six sided die roll. If the result is an even number you get an apple, if the result is an odd number you don't.

The manager of this booth is not liable for any drownings.

Re: Bobbing for Apples

PostPosted: Mon Oct 28, 2019 8:46 pm
by Catspaw
I managed to get 5/6 on one screen, but not 6/6. Has anyone else ever done it?

Re: Bobbing for Apples

PostPosted: Wed Oct 30, 2019 12:04 pm
by Bob
Who cares, when:
Image
;)

The odds of getting 6 apples in a row, from any six-apple set, should be about 1.5%, not including gourds. If you did it about 100 times you should have a reasonable shot at it, but I don't know whether anyone's had that much patience.

Re: Bobbing for Apples

PostPosted: Wed Oct 30, 2019 8:42 pm
by Catspaw
How did you get a pumpkin?! Apparently I need to play more. Good on you for figuring out the odds on getting six apples, Bob!

Re: Bobbing for Apples

PostPosted: Thu Oct 31, 2019 8:32 am
by bookworm
Catspaw wrote:How did you get a pumpkin?!
It's an easter egg! \:D/

The first year I posted this little game KF claimed he got a pumpkin, but really he had just changed the text in the box. The next year I modified the code so that couldn't be done any more, but also added in an actual pumpkin that sometimes appears.

Re: Bobbing for Apples

PostPosted: Thu Oct 31, 2019 8:41 pm
by Catspaw
A pumpkin that should be an apple as an easter egg. Quite the situation. ;)

What a fun idea, bookworm! :D

Re: Bobbing for Apples

PostPosted: Thu Oct 31, 2019 9:58 pm
by bookworm
Adding that in made me feel like a real programmer. \:D/