Condition Coverage

blib/lib/Games/AlphaBeta/Reversi.pm
Criterion Covered Total %
condition 235 266 88.3


and 3 conditions

line !l l&&!r l&&r condition
146 25917 145493 29707 $tx >= 0 and $$b[$tx][$y] == $not_me
149 25917 132328 13165 $tx >= 0 and $tx != $x - 1
158245 4456 8709 $tx >= 0 and $tx != $x - 1 and $$b[$tx][$y] == $me
155 31132 131569 17465 $tx < $size and $$b[$tx][$y] == $not_me
158 31132 122002 9567 $tx < $size and $tx != $x + 1
153134 4336 5231 $tx < $size and $tx != $x + 1 and $$b[$tx][$y] == $me
164 37282 120188 21311 $ty >= 0 and $$b[$x][$ty] == $not_me
167 37282 108814 11374 $ty >= 0 and $ty != $y - 1
146096 3825 7549 $ty >= 0 and $ty != $y - 1 and $$b[$x][$ty] == $me
173 28072 121849 29122 $ty < $size and $$b[$x][$ty] == $not_me
176 28072 108437 13412 $ty < $size and $ty != $y + 1
136509 3942 9470 $ty < $size and $ty != $y + 1 and $$b[$x][$ty] == $me
184 22761 31368 104920 $tx >= 0 and $ty >= 0
54129 86322 18598 $tx >= 0 and $ty >= 0 and $$b[$tx][$ty] == $not_me
188 22761 31368 86322 $tx >= 0 and $ty >= 0
54129 76512 9810 $tx >= 0 and $ty >= 0 and $tx != $x - 1
107880 0 9810 $tx >= 0 and $ty >= 0 and $tx != $x - 1 and $ty != $y - 1
76512 4094 5716 $tx >= 0 and $ty >= 0 and $tx != $x - 1 and $ty != $y - 1 and $$b[$tx][$ty] == $me
198 25522 21552 114376 $tx >= 0 and $ty < $size
47074 87661 26715 $tx >= 0 and $ty < $size and $$b[$tx][$ty] == $not_me
202 25522 21552 87661 $tx >= 0 and $ty < $size
47074 76666 10995 $tx >= 0 and $ty < $size and $tx != $x - 1
98218 0 10995 $tx >= 0 and $ty < $size and $tx != $x - 1 and $ty != $y + 1
76666 4490 6505 $tx >= 0 and $ty < $size and $tx != $x - 1 and $ty != $y + 1 and $$b[$tx][$ty] == $me
211 26851 22400 94240 $tx < $size and $ty < $size
49251 78979 15261 $tx < $size and $ty < $size and $$b[$tx][$ty] == $not_me
215 26851 22400 78979 $tx < $size and $ty < $size
49251 71707 7272 $tx < $size and $ty < $size and $tx != $x + 1
94107 0 7272 $tx < $size and $ty < $size and $tx != $x + 1 and $ty != $y + 1
71707 3410 3862 $tx < $size and $ty < $size and $tx != $x + 1 and $ty != $y + 1 and $$b[$tx][$ty] == $me
224 26858 27628 86680 $tx < $size and $ty >= 0
54486 69882 16798 $tx < $size and $ty >= 0 and $$b[$tx][$ty] == $not_me
228 26858 27628 69882 $tx < $size and $ty >= 0
54486 61331 8551 $tx < $size and $ty >= 0 and $tx != $x + 1
88959 0 8551 $tx < $size and $ty >= 0 and $tx != $x + 1 and $ty != $y - 1
61331 3815 4736 $tx < $size and $ty >= 0 and $tx != $x + 1 and $ty != $y - 1 and $$b[$tx][$ty] == $me
307 459 2328 1293 $tx >= 0 and $$b[$tx][$y] == $not_me
310 459 1853 475 $tx >= 0 and $tx != $x - 1
2312 78 397 $tx >= 0 and $tx != $x - 1 and $$b[$tx][$y] == $me
312 0 397 716 $tx >= 0 and $$b[$tx][$y] == $not_me
320 302 2485 1064 $tx < $size and $$b[$tx][$y] == $not_me
323 302 1944 541 $tx < $size and $tx != $x + 1
2246 139 402 $tx < $size and $tx != $x + 1 and $$b[$tx][$y] == $me
325 0 402 811 $tx < $size and $$b[$tx][$y] == $not_me
333 369 2418 1093 $ty >= 0 and $$b[$x][$ty] == $not_me
336 369 1758 660 $ty >= 0 and $ty != $y - 1
2127 189 471 $ty >= 0 and $ty != $y - 1 and $$b[$x][$ty] == $me
338 0 471 667 $ty >= 0 and $$b[$x][$ty] == $not_me
346 368 2419 1744 $ty < $size and $$b[$x][$ty] == $not_me
349 368 1586 833 $ty < $size and $ty != $y + 1
1954 166 667 $ty < $size and $ty != $y + 1 and $$b[$x][$ty] == $me
351 0 667 1252 $ty < $size and $$b[$x][$ty] == $not_me
361 372 269 2952 $tx >= 0 and $ty >= 0
641 2146 806 $tx >= 0 and $ty >= 0 and $$b[$tx][$ty] == $not_me
365 372 269 2146 $tx >= 0 and $ty >= 0
641 1718 428 $tx >= 0 and $ty >= 0 and $tx != $x - 1
1987 0 428 $tx >= 0 and $ty >= 0 and $tx != $x - 1 and $ty != $y - 1
1718 83 345 $tx >= 0 and $ty >= 0 and $tx != $x - 1 and $ty != $y - 1 and $$b[$tx][$ty] == $me
369 0 0 919 $tx >= 0 and $ty >= 0
0 345 574 $tx >= 0 and $ty >= 0 and $$b[$tx][$ty] == $not_me
380 423 337 3191 $tx >= 0 and $ty < $size
760 2027 1164 $tx >= 0 and $ty < $size and $$b[$tx][$ty] == $not_me
384 423 337 2027 $tx >= 0 and $ty < $size
760 1364 663 $tx >= 0 and $ty < $size and $tx != $x - 1
1701 0 663 $tx >= 0 and $ty < $size and $tx != $x - 1 and $ty != $y + 1
1364 93 570 $tx >= 0 and $ty < $size and $tx != $x - 1 and $ty != $y + 1 and $$b[$tx][$ty] == $me
388 0 0 1346 $tx >= 0 and $ty < $size
0 570 776 $tx >= 0 and $ty < $size and $$b[$tx][$ty] == $not_me
399 357 298 3422 $tx < $size and $ty < $size
655 2132 1290 $tx < $size and $ty < $size and $$b[$tx][$ty] == $not_me
403 357 298 2132 $tx < $size and $ty < $size
655 1505 627 $tx < $size and $ty < $size and $tx != $x + 1
1803 0 627 $tx < $size and $ty < $size and $tx != $x + 1 and $ty != $y + 1
1505 160 467 $tx < $size and $ty < $size and $tx != $x + 1 and $ty != $y + 1 and $$b[$tx][$ty] == $me
407 0 0 1271 $tx < $size and $ty < $size
0 467 804 $tx < $size and $ty < $size and $$b[$tx][$ty] == $not_me
418 323 344 3065 $tx < $size and $ty >= 0
667 2120 945 $tx < $size and $ty >= 0 and $$b[$tx][$ty] == $not_me
422 323 344 2120 $tx < $size and $ty >= 0
667 1530 590 $tx < $size and $ty >= 0 and $tx != $x + 1
1874 0 590 $tx < $size and $ty >= 0 and $tx != $x + 1 and $ty != $y - 1
1530 160 430 $tx < $size and $ty >= 0 and $tx != $x + 1 and $ty != $y - 1 and $$b[$tx][$ty] == $me
426 0 0 1010 $tx < $size and $ty >= 0
0 430 580 $tx < $size and $ty >= 0 and $$b[$tx][$ty] == $not_me

or 2 conditions

line l !l condition
58 0 2 shift() || 8

or 3 conditions

line l !l&&r !l&&!r condition
240 5027 8 25 @moves or $own_call
299 0 0 2787 $x < 0 or $x >= $size
0 0 2787 $x < 0 or $x >= $size or $y < 0
0 0 2787 $x < 0 or $x >= $size or $y < 0 or $y >= $size