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); }
public void Add(Player player) { Player existingPlayer = GetByName(player.Name); if (existingPlayer != null) throw new Exception("Player already exists"); Players.Add(player); }
public Player FindWinner(string score, Player player1, Player player2) { return player1; }