Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: YAGG (Yet Another Golf Game)

by trs80 (Priest)
on Feb 12, 2002 at 05:32 UTC ( [id://144787]=note: print w/replies, xml ) Need Help??


in reply to YAGG (Yet Another Golf Game)

for(1..200){$c=['H','T']->[rand(2)];$r{$t}++if$c ne 'T'; $t++if$c eq 'T';}for(keys%r){push@g,$r{$_}}print join('|',@g),"\n";
Here is some late night code, should be able to trim it down tomorrow. I may have missed the requirements as well. Thanks for the post.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://144787]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 02:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found