public void AddWord(GridWord word, Guid gameId) { Contract.Requires(word != null); var player = this.CurrentPlayer; if (player != null) { var game = this.GetGame(gameId); } else { throw new ArgumentOutOfRangeException(); } }
public void AddWord(PlayerBase player, GridWord word) { Contract.Requires(player == this.CurrentPlayer); var log = this.PlayerLogs.Single(l => l.Player == player); log.GridWords.Add(word); this.MoveToNextPlayer(); }