private bool ExecuteInternal(char character, IRobotWars robot, IValidateCommand validation)
 {
     if(validation.IsMoveCommand(character.ToString(CultureInfo.InvariantCulture)))
     {
         ICommand command = new MoveCommand();
         command.Execute(character, robot);
     }
     else
     {
         ICommand command = new SpinCommand();
         command.Execute(character, robot);
     }
     return true;
 }
Exemple #2
0
 public override void Setup()
 {
     base.Setup();
     this.command = new MoveCommand();
 }