public bool Execute(char command, IRobotWars robot) { var validate = new ValidateCommand(); if (robot == null || !validate.IsValid(command)) { return false; } robot.Move(); return true; }
public bool Execute(char command, IRobotWars robot) { var validate = new ValidateCommand(); if (robot == null || !validate.IsValid(command)) { return(false); } robot.Move(); return(true); }