From: Andy Spencer Date: Sun, 19 May 2013 20:46:46 +0000 (+0000) Subject: Add blind and nil to .turn bidders X-Git-Url: http://pileus.org/git/?p=~andy%2Frhawk;a=commitdiff_plain;h=4c134e54897a8a945d74b2f94ba1afdbf327a249 Add blind and nil to .turn bidders --- diff --git a/spades.awk b/spades.awk index fa79e88..02e4d03 100644 --- a/spades.awk +++ b/spades.awk @@ -229,10 +229,15 @@ function sp_bidders( i, turn, bid, bids) { for (i = 0; i < 4; i++) { turn = (sp_dealer + i) % 4 - if (sp_bids[turn] && !sp_nil[turn]) { + if (sp_bids[turn] && !sp_nil[turn]) bid = sp_order[turn] ":" sp_bids[turn] - bids = bids " " bid - } + else if (sp_nil[turn] == 1) + bid = sp_order[turn] ":" "nil" + else if (sp_nil[turn] == 2) + bid = sp_order[turn] ":" "blind" + else + continue + bids = bids " " bid } gsub(/^ +| +$/, "", bids) return bids