Exemple #1
0
        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;
 }
Exemple #3
0
 public AvoidCollosion(IMoveDecider another, int fillGiveUpLimit)
 {
     _another         = another;
     _fillGiveUpLimit = fillGiveUpLimit;
 }
Exemple #4
0
 public GotoCenter(IMoveDecider another)
 {
     _another = another;
 }
Exemple #5
0
 public GotoApple(IMoveDecider another)
 {
     _another = another;
 }