lib/Games/Checkers/Game.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 42 | 0.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
44 | 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" |
line | l | !l | condition |
---|---|---|---|
37 | 0 | 0 | $params{'title'} || 'Unknown White - Unknown Black' |
41 | 0 | 0 | $params{'black'} || 0 |
58 | 0 | 0 | $params{'level'} || 3 |
0 | 0 | $params{'random'} || 0 | |
0 | 0 | $params{'max_move_num'} || 1000 | |
131 | 0 | 0 | shift() || die() |
147 | 0 | 0 | shift() || 0 |
252 | 0 | 0 | shift() || 0 |
253 | 0 | 0 | shift() || 0 |
282 | 0 | 0 | shift() || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
203 | 0 | 0 | 0 | $random eq 1 || $random eq ($color == &White() ? 'w' : 'b') |
266 | 0 | 0 | 0 | shift() || ($self->is_max_move_num_reached ? "Automatic draw after $self->{'max_move_num'} moves" : $self->color_name(!$main::RULES{'GIVE_AWAY'}) . ' won') |
285 | 0 | 0 | 0 | $code eq '1-0' || $code eq '2-0' |
0 | 0 | 0 | $code eq '0-1' || $code eq '0-2' | |
0 | 0 | 0 | $code eq '1/2-1/2' || $code eq '1-1' |
line | l&&r | l&&!r | !l&&r | !l&&!r | condition |
---|---|---|---|---|---|
259 | 0 | 0 | 0 | 0 | ($starting ? $starting_color : $self->{'color'}) == &White() xor $opposite |