public GreyWorm(Communicator communicator, Settings settings) { _communicator = communicator; _settings = settings; _level = new Level(); var blockEnemy = new BlockEnemy(settings.DontBlock); var gotoApple = new GotoApple(blockEnemy); var gotoCenter = new GotoCenter(gotoApple); var avoidCollosion = new AvoidCollosion(gotoCenter, settings.FillGiveUpLimit); _decider = avoidCollosion; }
public ComputerNeverLose(Symbol symbol, string name, IMoveDecider moveDecider) : base(symbol, name) { _moveDecider = moveDecider; }
public AvoidCollosion(IMoveDecider another, int fillGiveUpLimit) { _another = another; _fillGiveUpLimit = fillGiveUpLimit; }
public GotoCenter(IMoveDecider another) { _another = another; }
public GotoApple(IMoveDecider another) { _another = another; }