示例#1
0
        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);
        }
示例#2
0
 public void Load(ICamelCupPlayer player)
 {
     Runner.AddPlayer(player);
 }
示例#3
0
 public Player(ICamelCupPlayer playerInterface, TimeSpan maxActionTime, TimeSpan maxGameTime)
 {
     PlayerInterface = playerInterface;
     MaxActionTime   = maxActionTime;
     MaxGameTime     = maxGameTime;
 }