示例#1
0
        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();
              }
        }
示例#2
0
文件: Game.cs 项目: git-heavy/Erudit
        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();
        }