Branch Coverage

blib/lib/Games/AlphaBeta.pm
Criterion Covered Total %
branch 30 46 65.2


line true false branch
104 0 2 unless $pos->can('endpos')
105 0 2 unless $pos->can('evaluate')
106 0 2 unless $pos->can('findmoves')
122 1 0 if @_
148 1 63 if (@_) { }
150 0 1 if $$self{'debug'}
160 0 64 if $pos->endpos
161 1 63 unless @moves = $pos->findmoves
166 0 63 if $$self{'debug'}
171 0 499 unless $npos->apply($move)
174 0 499 if $$self{'debug'}
175 125 374 if ($sc > $alpha)
176 0 125 if $$self{'debug'}
181 0 499 if $$self{'debug'}
183 0 63 if $$self{'debug'}
185 0 63 unless $bestmove_valid
207 0 2878 if ($pos->endpos) { }
2331 547 elsif ($ply <= 0) { }
215 1 546 unless (@moves = $pos->findmoves)
222 0 2379 unless $npos = $pos->copy
223 0 2379 unless $npos->apply($move)
227 1039 1340 if $sc > $alpha
228 399 1980 unless $alpha < $beta