protected PaintBot(PaintBotConfig paintBotConfig, IPaintBotClient paintBotClient, IHearBeatSender heartBeatSender, ILogger logger)
 {
     _paintBotClient      = paintBotClient;
     _heartBeatSender     = heartBeatSender;
     _logger              = logger;
     _gameLengthInSeconds = paintBotConfig.GameLengthInSeconds;
 }
Beispiel #2
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;
 }
Beispiel #3
0
 protected StatePaintBot(PaintBotConfig paintBotConfig, IPaintBotClient paintBotClient, IHearBeatSender heartBeatSender, ILogger logger) :
     base(paintBotConfig, paintBotClient, heartBeatSender, logger)
 {
     Random = new System.Random();
 }
 public MyPaintBot(PaintBotConfig paintBotConfig, IPaintBotClient paintBotClient, IHearBeatSender hearBeatSender, ILogger logger) :
     base(paintBotConfig, paintBotClient, hearBeatSender, logger)
 {
     GameMode = paintBotConfig.GameMode;
     Name     = paintBotConfig.Name ?? "My c# bot";
 }