X-Git-Url: http://pileus.org/git/?p=~andy%2Fspades;a=blobdiff_plain;f=src%2FSpades.java;fp=src%2FSpades.java;h=b1d9d74979b9137ef435787588b8a6f8ab08863b;hp=31878442460291f6564af9b8164b72e94dc39ec0;hb=a4c319d3946b574e75e591e6615826c9fc40de89;hpb=35e1b13fb6ba50c0dbc6284f6dda35f562b8b94a diff --git a/src/Spades.java b/src/Spades.java index 3187844..b1d9d74 100644 --- a/src/Spades.java +++ b/src/Spades.java @@ -50,6 +50,15 @@ public class Spades this.cards.pile = Spades.getCards(txt, ".*turn! \\((.*)\\)"); this.cards.requestRender(); } + if (txt.startsWith("It is")) { + this.cards.turn = txt.replaceAll("It is (\\w+)'s (\\w+)!.*", "$1"); + this.cards.state = txt.replaceAll("It is (\\w+)'s (\\w+)!.*", "$2"); + this.cards.requestRender(); + } + if (txt.startsWith("^it is your")) { + this.cards.turn = msg.to; + this.cards.requestRender(); + } } /* UI Callbacks */