Esempio n. 1
0
        public override async Task <PhaseResult <string> > DoPhase1Async(PhaseContext1 context, IBattlePhases processor)
        {
            Console.Write($"{context.X} + {context.Y} + Z >");
            var input = Console.ReadLine();

            if (input == "cancel" || input is null)
            {
                return(new Cancelled <string>());
            }

            return(await processor.HandlePhase2Async(context, int.Parse(input)));
        }