Pseudocoded

$brain->viewSource()

Archive for February, 2008


Persistence

Contributed by Vijay

while (true)
{
       $scenario = $brain->generate_idea ();
       $code = $brain->convert_to_code ($scenario);
 
       $pseudocoded->submit ($code);
 
       if ( $pseudocoded->accepts ($code) )
       {
               $me->set_mood("happy");
               exit;
       }
}