callbacks => {
shoot=>\&shoot,
next_player=>\&next_player,
+ before_shoot=>\&print_score,
}
);
exit $dart->run();
$self->shout_last_shoot() if ($scored || $self_scored);
$self->shout("scored") if $scored;
$self->shout("scho") if $scho && not $scored;
- &print_score($self);
}
sub next_player
{
my $self=shift;
- &print_score($self);
}
sub print_score