public Card Discard(Card c) { Log.WriteLine("discards {0}", c.ToString()); c.In = Card.Holder.DISCARD; if (this.Hints < HINTS) this.Hints++; return Draw(); }
public Card Play(Card c) { Log.Write("plays {0}... ", c.ToString()); if (this.Deck.AllowPlay(c)) { Log.WriteLine("OK!"); c.In = Card.Holder.BOARD; if (c.Number == Card.NUMBERS && this.Hints < HINTS) this.Hints++; } else { Log.WriteLine("FAIL!"); c.In = Card.Holder.DISCARD; this.Fails--; } return Draw(); }