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

            robot.Move();
            return true;
        }
Beispiel #2
0
        public bool Execute(char command, IRobotWars robot)
        {
            var validate = new ValidateCommand();

            if (robot == null || !validate.IsValid(command))
            {
                return(false);
            }

            robot.Move();
            return(true);
        }