A Rebol Challenge. The Monty Hall Puzzle IN *too many* BYTES
[1/5] from: mario::cassani::icl::com at: 21-Dec-2001 9:49
Hallo Sunanda and Rebolers,
> > I am also fairly
> > > confident that I
<<quoted lines omitted: 7>>
> is only a first
> draft ... more of a proof of concept. See what you think.
I made a huge one: 4 Kb without pics, more than 50 Kb with
embedded-self-extracting PNGs.
Sunanda can find it attached (the others must ask it to me
*today* because tomorrow I will go on holidays until 2001/1/9).
It's a bad implementation made in the spare times during the
work but shows what I wanted (but it's not really animated).
If you like to optimise it you are welcome, I'm neither a
View/VID guru...
> You'll have to save this code as a file (e.g. VidDOORS.R) and
> then Do it ...
> The square brackets aren't up to the Console's expectations,
> so you can't
> just cut and paste it into the console
...nor a beginner like that! ;D
Merry Xmas and Happy new year to the whole list
and to the great RT people.
Zaijian
Mario
-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: Monty.zip
[2/5] from: sunandadh:aol at: 21-Dec-2001 5:31
Hi Mario,
> I made a huge one: 4 Kb without pics, more than 50 Kb with
> embedded-self-extracting PNGs.
<<quoted lines omitted: 4>>
> If you like to optimise it you are welcome, I'm neither a
> View/VID guru...
Nice stuff! Though I was a bit confused about the prize being a battleship
rather than a car!
One quick point, staying focused on compactedness of code. If you have a
web/reb site, you could put your images up on that and use
load-thru
to access them. So the script is just 3 or 4k, and the first time I run it,
it downloads the PNGs. Later runs will find the images in Rebol's cache.
You could even get the script down to about 1 K by compressing it, and having
the main program look like:
Rebol []
do load decompress #{...script...}
If anyone wants a copy of Mario's script (31K WinZip file), and it's already
tomorrow, please email me privately,
Sunanda.
[3/5] from: mario:cassani:icl at: 21-Dec-2001 11:00
Hallo Sunanda,
> Nice stuff! Though I was a bit confused about the prize being
> a battleship rather than a car!
Well, that's why I've stolen the picture from one of the sites
talking about the Monty Hall and using a boat as prize.
> One quick point, staying focused on compactedness of code. If
> you have a
> web/reb site, you could put your images up on that and use
>
> load-thru
[...]
> Rebol's cache.
Yes, thanks, I know, but I miss a rebsite because:
1) I'm behind a nasty proxy (sorry list if I repeat this again)
so I will need a site where I can upload files with a web browser.
2) I don't have a website
> You could even get the script down to about 1 K by
> compressing it, and having
> the main program look like:
>
> Rebol []
> do load decompress #{...script...}
Just like I did with the pictures, but the point is that my
code is far from optimised, even if I "hide" it with compress ;)
Today I must finish the work before leaving for holidays so
no time (and knowledge/patience) to clean up the code...
> If anyone wants a copy of Mario's script (31K WinZip file),
> and it's already
> tomorrow, please email me privately,
"Tomorrow", being me in the CET timezone will start from
17:00GMT (when I'll leave the office).
Mario
[4/5] from: reichart:prolific at: 21-Dec-2001 20:49
Hello Sunanda,
Cute program. But, the wait is loooooooooonnnnnnnnnggg.
Let me haul ass. Also track my stats. This way I can prove the point to
others faster. Meaning, show me numbers, with total plays, total wins.
I happen to be VERY good at dealing 3 Card Monty. This is the card game you
see people in New York playing on the street corners (I wonder if it gets
its name from Monty Hall). So I can "throw" the card (usually an ace among
two jokers) where ever I wish.
When teaching the odds of this game (not 3 Card Monty, but Monty Hall
puzzle), we play about 20 times, at which point people finally believe the
odds of 2/3.
Some think I'm simply "throwing" the cards. Which I only do for children,
and paying adults! :)
With your permission I would like to put a version of your Rebol app on my
personal site for future examples to others. All source will remain in
tact, and with your comments, etc.
Reichart...
[Reichart--Prolific--com]
Be useful.
[5/5] from: sunandadh:aol at: 22-Dec-2001 7:29
Hi Reichart,
> Cute program. But, the wait is loooooooooonnnnnnnnnggg.
> Let me haul ass. Also track my stats. This way I can prove the point to
> others faster. Meaning, show me numbers, with total plays, total wins.
Thanks.
One person's dramatic pause is another's irritating looong wait. Feel free to
change the weights on the waits yourself.
And add your own counts if you like.
> With your permission I would like to put a version of your Rebol app on my
> personal site for future examples to others. All source will remain in
> tact, and with your comments, etc.
You can do what you like with it, as long as it is non-commercial usage. If
you change the code significantly, please put us down as joint authors, and
email me a latest copy.
Also take a look at Mario's implementation ([Mario--Cassani--icl--com]). He's
away for some days, but I can email you a copy if you like. It's more
polished, and has a lot more graphic than mine. It might suit your use better.
Sunanda.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted