diff --git a/winners.awk b/winner.awk similarity index 66% rename from winners.awk rename to winner.awk index 7df5ea7..6a32a91 100755 --- a/winners.awk +++ b/winner.awk @@ -12,12 +12,18 @@ BEGIN { p = $4; } score[p] += 1; - if (score[p] > topscore) { + if (score[p] == topscore) { + winners += 1; + } else if (score[p] > topscore) { + winners = 1; topscore = score[p]; } } END { + if (winners > 1) { + exit; + } for (id in tanks) { if (score[id] == topscore) { print tanks[id];