Help for this page

Select Code to Download


  1. or download this
    while (1)
    {
      $taxis->taxis(); # move every woodlouse through one cycle
      DoOneEvent( $running ? DONT_WAIT : ALL_EVENTS );
    }
    
  2. or download this
    $mw->repeat( 50, [ sub { $taxis->taxis() if $running } ] );
    DoOneEvent( $running ? DONT_WAIT : ALL_EVENTS ) while 1;