Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Prolegemona To A Future Scripting Language: Game Of Life In Perl 6

by jryan (Vicar)
on Apr 26, 2003 at 22:31 UTC ( #253416=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $newgrid[$x][$y] = given @.grid[$x][$y]
        {
          when 0   { 1 if $live == 3};
          when 1   { 1 if 1 <  $live < 4 }:
        } || 0;
    
  2. or download this
    $newgrid[$x][$y] = given @.grid[$x][$y] {
          when 0  { 1 if $live == 3};
          when 1  { 1 if 1 <  $live < 4 };
          default { 0 };
        };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-12-20 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls