Condition Coverage

blib/lib/Chess/Play.pm
Criterion Covered Total %
condition 0 158 0.0


and 3 conditions

line !l l&&!r l&&r condition
540 0 0 0 $w_insuff && $b_insuff
717 0 0 0 $orig_square >= 38 and $orig_square <= 45
719 0 0 0 $$self{'BOARD'}[$dest_square] == 0 and $$self{'BOARD'}[$dest_square - 12] == 0
726 0 0 0 $$self{'BOARD'}[$dest_square] != 99 and $$self{'BOARD'}[$dest_square] < 0
740 0 0 0 $$self{'BOARD'}[$dest_square] != 99 and $$self{'BOARD'}[$dest_square] < 0
753 0 0 0 $orig_square >= 74 and $orig_square <= 81
785 0 0 0 $orig_square >= 98 and $orig_square <= 105
787 0 0 0 $$self{'BOARD'}[$dest_square] == 0 and $$self{'BOARD'}[$dest_square + 12] == 0
794 0 0 0 $$self{'BOARD'}[$dest_square] != 99 and $$self{'BOARD'}[$dest_square] > 0
808 0 0 0 $$self{'BOARD'}[$dest_square] != 99 and $$self{'BOARD'}[$dest_square] > 0
821 0 0 0 $orig_square >= 62 and $orig_square <= 69
864 0 0 0 $$self{'CASTLE_OK'}{'E1G1'} and $$self{'BOARD'}[33] == 4
0 0 0 $$self{'CASTLE_OK'}{'E1G1'} and $$self{'BOARD'}[33] == 4 and $$self{'BOARD'}[31] == 0
0 0 0 $$self{'CASTLE_OK'}{'E1G1'} and $$self{'BOARD'}[33] == 4 and $$self{'BOARD'}[31] == 0 and $$self{'BOARD'}[32] == 0
872 0 0 0 $$self{'CASTLE_OK'}{'E1C1'} and $$self{'BOARD'}[26] == 4
0 0 0 $$self{'CASTLE_OK'}{'E1C1'} and $$self{'BOARD'}[26] == 4 and $$self{'BOARD'}[29] == 0
0 0 0 $$self{'CASTLE_OK'}{'E1C1'} and $$self{'BOARD'}[26] == 4 and $$self{'BOARD'}[29] == 0 and $$self{'BOARD'}[28] == 0
0 0 0 $$self{'CASTLE_OK'}{'E1C1'} and $$self{'BOARD'}[26] == 4 and $$self{'BOARD'}[29] == 0 and $$self{'BOARD'}[28] == 0 and $$self{'BOARD'}[27] == 0
884 0 0 0 $$self{'CASTLE_OK'}{'E8G8'} and $$self{'BOARD'}[117] == -4
0 0 0 $$self{'CASTLE_OK'}{'E8G8'} and $$self{'BOARD'}[117] == -4 and $$self{'BOARD'}[115] == 0
0 0 0 $$self{'CASTLE_OK'}{'E8G8'} and $$self{'BOARD'}[117] == -4 and $$self{'BOARD'}[115] == 0 and $$self{'BOARD'}[116] == 0
893 0 0 0 $$self{'CASTLE_OK'}{'E8C8'} and $$self{'BOARD'}[110] == -4
0 0 0 $$self{'CASTLE_OK'}{'E8C8'} and $$self{'BOARD'}[110] == -4 and $$self{'BOARD'}[113] == 0
0 0 0 $$self{'CASTLE_OK'}{'E8C8'} and $$self{'BOARD'}[110] == -4 and $$self{'BOARD'}[113] == 0 and $$self{'BOARD'}[112] == 0
0 0 0 $$self{'CASTLE_OK'}{'E8C8'} and $$self{'BOARD'}[110] == -4 and $$self{'BOARD'}[113] == 0 and $$self{'BOARD'}[112] == 0 and $$self{'BOARD'}[111] == 0
993 0 0 0 not $flag{'WK_e1f1'} and $flag{'WK_e1g1'}
994 0 0 0 not $flag{'WK_e1d1'} and $flag{'WK_e1c1'}
995 0 0 0 not $flag{'BK_e8f8'} and $flag{'BK_e8g8'}
996 0 0 0 not $flag{'BK_e8d8'} and $flag{'BK_e8c8'}
1059 0 0 0 $dest_square - $orig_square == 13 and $$self{'BOARD'}[$dest_square] == 0
0 0 0 $dest_square - $orig_square == 11 and $$self{'BOARD'}[$dest_square] == 0
1085 0 0 0 $dest_square - $orig_square == -11 and $$self{'BOARD'}[$dest_square] == 0
0 0 0 $dest_square - $orig_square == -13 and $$self{'BOARD'}[$dest_square] == 0
1113 0 0 0 $moving_piece == 4 and $orig_square == 33
0 0 0 $moving_piece == 4 and $orig_square == 26
0 0 0 $moving_piece == -4 and $orig_square == 117
0 0 0 $moving_piece == -4 and $orig_square == 110
1476 0 0 0 $engine_color ne 'W' and $engine_color ne 'B'
1538 0 0 0 $answer ne 'Y' and $answer ne 'N'

or 2 conditions

line l !l condition
427 0 0 shift() || 'My Chess::Play Engine'

or 3 conditions

line l !l&&r !l&&!r condition
307 0 0 0 $p_val <= 0 or $p_val > 15
0 0 0 $n_val <= 0 or $n_val > 15
0 0 0 $p_val <= 0 or $p_val > 15 or ($n_val <= 0 or $n_val > 15)
0 0 0 $b_val <= 0 or $b_val > 15
0 0 0 $p_val <= 0 or $p_val > 15 or ($n_val <= 0 or $n_val > 15) or ($b_val <= 0 or $b_val > 15)
0 0 0 $r_val <= 0 or $r_val > 15
0 0 0 $p_val <= 0 or $p_val > 15 or ($n_val <= 0 or $n_val > 15) or ($b_val <= 0 or $b_val > 15) or ($r_val <= 0 or $r_val > 15)
0 0 0 $q_val <= 0 or $q_val > 15
0 0 0 $p_val <= 0 or $p_val > 15 or ($n_val <= 0 or $n_val > 15) or ($b_val <= 0 or $b_val > 15) or ($r_val <= 0 or $r_val > 15) or ($q_val <= 0 or $q_val > 15)
1021 0 0 0 $$self{'BOARD'}[$dest_square] != 0 or $moving_piece == 1
0 0 0 $$self{'BOARD'}[$dest_square] != 0 or $moving_piece == 1 or $moving_piece == -1
1231 0 0 0 $piece == 0 or $piece == 6
0 0 0 $piece == 0 or $piece == 6 or $piece == -6