]> Pileus Git - ~andy/rhawk/commitdiff
Add blind and nil to .turn bidders
authorAndy Spencer <andy753421@gmail.com>
Sun, 19 May 2013 20:46:46 +0000 (20:46 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 19 May 2013 20:46:46 +0000 (20:46 +0000)
spades.awk

index fa79e88dd6d27654ec8e3cce7a63934ef08d7f1d..02e4d036f5928a724f35c8d2836b4110f3fe066f 100644 (file)
@@ -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