Next Program Repair Shop 171

evaluate_board

   360      foreach $x (0..2) {
   361          if (
   362              ($squares->[$x][0] eq $squares->[$x][1]) and
   363              ($squares->[$x][1] eq $squares->[$x][2]) 
   364             ) {
   365              $winner = $squares->[$x][0];
   366              return $winner;
   367          }
   368      }
            ...


Next Copyright © 2002 M. J. Dominus