From 93818963dbc84a3d97fbf04fc96fa78920a017a2 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Thu, 28 Jan 2016 05:11:32 +0000 Subject: [PATCH] Fix tie games, finally, after 4 years --- spades.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spades.awk b/spades.awk index a377ed5..3f357d2 100644 --- a/spades.awk +++ b/spades.awk @@ -379,8 +379,8 @@ function sp_play(card, winner, pi) sp_tricks[2] + sp_tricks[3] == 13) { sp_say("Round over!") sp_score() - if (sp_scores[0] >= sp_playto || sp_scores[1] >= sp_playto && - sp_scores[0] != sp_scores[1]) { + if ((sp_scores[0] >= sp_playto || sp_scores[1] >= sp_playto) && + (sp_scores[0] != sp_scores[1])) { sp_say("Game over!") winner = sp_scores[0] > sp_scores[1] ? 0 : 1 looser = !winner -- 2.43.2