コード例 #1
0
        private void MakeTurn(Turn turn)
        {
            TurnError?e = TurnCmdHandler.MakeTurn(turn);

            if (e != null)
            {
                PrintError(e);
            }
        }
コード例 #2
0
 public CommandCycle(
     IConsoleIO consoleIO,
     GameCmdHandler gameCmdHandler,
     TurnCmdHandler turnCmdHandler,
     BoardPrinter boardPrinter,
     CommandParser commandParser)
 {
     Console        = consoleIO;
     GameCmdHandler = gameCmdHandler;
     TurnCmdHandler = turnCmdHandler;
     BoardPrinter   = boardPrinter;
     CommandParser  = commandParser;
 }