﻿/*
 * User: cittah
 * Date: 18/03/2016
 * Time: 4:55 PM
 * 
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

 
    namespace TournamentTracker
{
    /// <summary>
    /// Description of Tournament.
    /// </summary>
    public class Tournament
    {
        private List<Player> playerList = new List<Player>();
        private List<Round> roundList = new List<Round>();
        private string name;
        public Tournament(List<Player> players, string tournName)
        {
            this.name = tournName;
            this.playerList.AddRange(players);
            Round round = new Round(playerList, 0);
            round.createPairings();
            roundList.Add(round);

        }
        public Tournament()
        {
        }

        public List<Player> PlayerList
        {
            get
            {
                return playerList;
            }

            set
            {
                playerList = value;
            }
        }

        public List<Round> RoundList
        {
            get
            {
                return roundList;
            }

            set
            {
                roundList = value;
            }
        }

        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
            }
        }
    }
}
