public void AddPlayer(ICamelCupPlayer playerInterface) { var player = new Player(playerInterface, MaxComputeTimePerAction, MaxComputeTimePerGame); player.PerformAction(x => x.Load()); player.PerformAction(x => player.Name = x.GetPlayerName()); _players.Add(player); }
public void Load(ICamelCupPlayer player) { Runner.AddPlayer(player); }
public Player(ICamelCupPlayer playerInterface, TimeSpan maxActionTime, TimeSpan maxGameTime) { PlayerInterface = playerInterface; MaxActionTime = maxActionTime; MaxGameTime = maxGameTime; }