projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
atarted new rf433rcv as copy of pjrc rawhid
[svn42.git]
/
dart
/
dart-cricket.pl
diff --git
a/dart/dart-cricket.pl
b/dart/dart-cricket.pl
index
c319999
..
f96b0b9
100755
(executable)
--- a/
dart/dart-cricket.pl
+++ b/
dart/dart-cricket.pl
@@
-51,6
+51,7
@@
sub win_condition
my $score = $self->get_current_player()->{score}->{0};
for my $player_idx (0..($self->{player_count}-1))
{
+ next if not $self->get_player($player_idx)->{active};
return if $score > $self->get_player($player_idx)->{score}->{0};
}
return 1;