Example #1
0
 protected PaintBot(PaintBotConfig paintBotConfig, IPaintBotClient paintBotClient, IHearBeatSender heartBeatSender, ILogger logger)
 {
     _paintBotClient      = paintBotClient;
     _heartBeatSender     = heartBeatSender;
     _logger              = logger;
     _gameLengthInSeconds = paintBotConfig.GameLengthInSeconds;
 }
Example #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;
 }
Example #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";
 }