Condition Coverage

lib/Games/Checkers/Game.pm
Criterion Covered Total %
condition 0 22 0.0


and 3 conditions

line !l l&&!r l&&r condition
37 0 0 0 !($params{'use_term'} || $ENV{'USE_TERM'}) && eval "\n\t\tuse Games::Checkers::SDL;\n\t\tGames::Checkers::SDL->new(\$title, \$board, fullscreen => \$params{fullscreen});\n\t"

or 2 conditions

line l !l condition
33 0 0 $params{'title'} || 'Unknown White - Unknown Black'
42 0 0 $params{'level'} || 3
0 0 $params{'random'} || 0
0 0 $params{'max_move_num'} || 1000
75 0 0 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
42 0 0 0 $params{'title'} || $title
120 0 0 0 $random eq 1 || $random eq ($color == White ? 'w' : 'b')
165 0 0 0 shift() || ($self->is_max_move_num_reached ? "Automatic draw after $$self{'max_move_num'} moves." : (($$self{'color'} == White xor $Games::Checkers::give_away) ? 'Black' : 'White') . ' won.')