blib/lib/Games/2048/Game.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 11 | 18 | 61.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
65 | 131 | 269 | 171 | $self->within_bounds($next) and not $self->tile($next) |
102 | 0 | 0 | 0 | $move_score >= $self->goal and not $self->won |
0 | 0 | 0 | $move_score >= $self->goal and not $self->won and grep {$_->value >= $self->goal;} $self->each_tile | |
121 | 0 | 151 | 322 | $tile and $next_tile |
151 | 34 | 288 | $tile and $next_tile and not $next_tile->merged |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
59 | 13 | 6 | 19 | $$vec[0] > 0 || $$vec[1] > 0 |