Condition Coverage

blib/lib/Games/Alak.pm
Criterion Covered Total %
condition 0 36 0.0


and 3 conditions

line !l l&&!r l&&r condition
62 0 0 0 $$_{'last_move_from'} eq $from && $$_{'last_move_to'} eq $to
254 0 0 0 defined $show_to_depth and $show_to_depth <= $depth
326 0 0 0 $to > 1 and $mover eq 'o' ? substr($new_board, 0, $to) =~ s/o(x+)$/'o' . '.' x length($1);/es : substr($new_board, 0, $to) =~ s/x(o+)$/'x' . '.' x length($1);/es
331 0 0 0 $to < 9 and $mover eq 'o' ? substr($new_board, $to + 1) =~ s/^(x+)o/'.' x length($1) . 'o';/es : substr($new_board, $to + 1) =~ s/^(o+)x/'.' x length($1) . 'x';/es

or 2 conditions

line l !l condition
179 0 0 $_[1] || 0
243 0 0 $max_depth_seen || 1
302 0 0 $$node{'move_count'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
99 0 0 0 $line eq 'advise' or $line eq 'advice'
183 0 0 0 $depth >= $Games::Alak::Max_depth or @{$$n{'successors'};}
0 0 0 $depth >= $Games::Alak::Max_depth or @{$$n{'successors'};} or $$n{'endgame'}
211 0 0 0 not @best_cases or $best_cases[0]{'average_payoff'} == $this_payoff
288 0 0 0 $$node{'endgame'} or $$node{'board'} =~ tr/x// < 2
0 0 0 $$node{'endgame'} or $$node{'board'} =~ tr/x// < 2 or $$node{'board'} =~ tr/o// < 2