CShAheui.App.Aheui.Aheui.Step C# (CSharp) Метод

Step() приватный Метод

private Step ( ) : Hangul
Результат CShAheui.Core.Hangul
        private Hangul Step()
        {
            // 1. Poll
            Hangul instruction = code.At(cursor.X, cursor.Y);
            // 2. Execute
            bool reversed = false;
            if (!instruction.IsNop)
            {
                try
                {
                    reversed = base.Step(instruction.Command, instruction.Argument);
                }
                catch (NotImplementedException)
                {
                    Error.WriteLine("[!!] 구현되지 않은 행동: {0}행 {1}열", cursor.Y + 1, cursor.X + 1);
                }
                catch (DivideByZeroException)
                {
                    Error.WriteLine("[!!] 0으로 나눔: {0}행 {1}열", cursor.Y + 1, cursor.X + 1);
                }
            }
            // 3. Move
            cursor.Move(code, instruction.Direction, reversed);

            return instruction;
        }
    }