Exemple #1
0
        public void GenerateRandomTile(ref IBoard board)
        {
            int pickedTile;
            int tileValue;

            pickedTile = this.m_rand.Next(0, board.BlankTiles.Count);
            tileValue = this._tileGenerator.GetNextTile();

            board.SetTile(board.BlankTiles[pickedTile].Item1, board.BlankTiles[pickedTile].Item2, tileValue);
        }