public Motive Expose(MaskedCard card, Game game) { Contract.Requires(card != null); Contract.Requires(game != null); var history = new History(this, card.Position, DateTime.Now); game.AddHistory(history); return(card.Expose().Motive); }
public Motive Expose(MaskedCard card, Game game) { if (card == null) { throw new ArgumentNullException(nameof(card)); } if (game == null) { throw new ArgumentNullException(nameof(game)); } var history = new History(this, card.Position, DateTime.Now); game.AddHistory(history); return(card.Expose().Motive); }