Пример #1
0
 protected PaintBot(PaintBotConfig paintBotConfig, IPaintBotClient paintBotClient, IHearBeatSender heartBeatSender, ILogger logger)
 {
     _paintBotClient      = paintBotClient;
     _heartBeatSender     = heartBeatSender;
     _logger              = logger;
     _gameLengthInSeconds = paintBotConfig.GameLengthInSeconds;
 }
Пример #2
0
 protected StatePaintBot(PaintBotConfig paintBotConfig, IPaintBotClient paintBotClient, IHearBeatSender heartBeatSender, ILogger logger) :
     base(paintBotConfig, paintBotClient, heartBeatSender, logger)
 {
     Random = new System.Random();
 }
Пример #3
0
 public MyPaintBot(PaintBotConfig paintBotConfig, IPaintBotClient paintBotClient, IHearBeatSender hearBeatSender, ILogger logger) :
     base(paintBotConfig, paintBotClient, hearBeatSender, logger)
 {
     GameMode       = paintBotConfig.GameMode;
     Name           = paintBotConfig.Name ?? "Båtersh";
     LastAction     = Action.Stay;
     LastLastAction = Action.Down;
     counter        = 0;
 }
Пример #4
0
 public MyPaintBot(PaintBotConfig paintBotConfig, IPaintBotClient paintBotClient, IHearBeatSender hearBeatSender, ILogger logger) :
     base(paintBotConfig, paintBotClient, hearBeatSender, logger)
 {
     GameMode = paintBotConfig.GameMode;
     Name     = paintBotConfig.Name ?? "My c# bot";
 }
Пример #5
0
 public FakeBot(IPaintBotClient paintBotClient, IHearBeatSender heartBeatSender, ILogger logger,
                PaintBotConfig config) : base(config, paintBotClient, heartBeatSender, logger)
 {
     GameMode = config.GameMode;
 }