From: Andy Spencer Date: Mon, 9 Dec 2013 05:50:24 +0000 (+0000) Subject: Swizzle .show X-Git-Url: http://pileus.org/git/?p=~andy%2Frhawk;a=commitdiff_plain;h=d835858f06efd16a8044b0c0066a8a498f5f216a Swizzle .show --- diff --git a/spades.awk b/spades.awk index c3a281b..c043eeb 100644 --- a/spades.awk +++ b/spades.awk @@ -547,8 +547,11 @@ match($0, /^\.newgame ?([0-9]+) *- *([0-9]+)$/, _arr) { sp_state ~ "(bid|pass|play)" && /^\.show/ { + delete _lines for (_i in sp_share) - say(_i " can play for " sp_share[_i]); + _lines[sp_share[_i]] = _lines[sp_share[_i]] " " _i + for (_i in _lines) + say(_i " allowed:" _lines[_i]) } !sp_valid &&