Enjoy a pint for St Patrick
@_ = split(//,' . ` o '); while(I){$mispent = '||'.@_[rand(15)].@_[rand(15)].@_[rand(15)].@_[rand(15)]. @_[rand(15)].@_[rand(15)].@_[rand(15)].@_[rand(15)]. @_[rand(15)].@_[rand(15)].'|'; $StPatties = '\|\| \|'; $guiness= '| |===|:|| | |=|:|| | |=|:|'; $greenbeer= '|oOooOoOooOo|:|oO.oo.O.oOo|:|| |:|| |:|'; $irish= '| | |=|:|| ||=|:|| |=|:|| |:|'; $whiskey= '|==========|:|___________|:'; $pitcher=$greenbeer.$guiness.$irish.$whiskey; @glass=split(/:/, $pitcher); $beer=11;for($drunk=11;$drunk>0;$drunk--) {$good=0;foreach(@glass){$good++;$pint=$_; ($beer eq $good)?($pint =~ s/$StPatties/$mispent/):(); print $pint;print "\n";} ($beer eq $drunk)?($beer--): ();select $,,$,,$,,0.1;system(($^O eq 'MSWin32')?'cls':'clear');}}

Replies are listed 'Best First'.
Re: Ode to St Patrick
by zentara (Cardinal) on Mar 19, 2005 at 13:02 UTC
    Isn't the "foam line" at the top, supposed to move downwards with time? :-)

    Try this code change for "green beer".

    #print $pint; print "\033[42m $pint \033[m";

    I'm not really a human, but I play one on earth. flash japh
Re: Ode to St Patrick
by Mr. Graffite (Initiate) on Apr 06, 2005 at 21:36 UTC
    Here, have a beer on me!


    Mr. Graffite