Example #1
0
 public void AddPlayer(string name, string address, string phone, string email)
 {
     Player player = new Player { Name = name, Address = address, Phone = phone, Email = email };
     //next version, check for player's existence before adding
     //hello hello
     PlayerDAL.GetInstance().Add(player);
 }
Example #2
0
        public void Add(Player player)
        {
            Player existingPlayer = GetByName(player.Name);
            if (existingPlayer != null)
                throw new Exception("Player already exists");

            Players.Add(player);
        }
Example #3
0
 public Player FindWinner(string score, Player player1, Player player2)
 {
     return player1;
 }