Permalink
Browse files

Fixed stupid mistake.

  • Loading branch information...
Barry Carter
Barry Carter committed Oct 8, 2010
1 parent fe512d7 commit 6ad421eaecb593ae385b4e28a3a2cccd74c322d5
Showing with 2 additions and 2 deletions.
  1. +2 −2 bc-conquerclub-cubes.pl
View
@@ -17,9 +17,9 @@
@d = reverse(sort($d1,$d2));
# compare the highest dice (>= below since defender wins ties)
- if ($d1 >= $a1) {$aloss++;} else {$dloss++;}
+ if ($d[0] >= $a[0]) {$aloss++;} else {$dloss++;}
# compare the 2nd highest dice (>= below since defender wins ties)
- if ($d2 >= $a2) {$aloss++;} else {$dloss++;}
+ if ($d[1] >= $a[1]) {$aloss++;} else {$dloss++;}
# print result
print "A: $aloss, D: $dloss\n";
}

0 comments on commit 6ad421e

Please sign in to comment.