Example #1
0
        private static void InitClient()
        {
            Initializer initializer = new Initializer();

            colorParser = new ColorParser();
            chipParser  = new ChipParser();

            string        blackHole     = Console.ReadLine();
            ChipDoStepDTO chipBlackHole = chipParser.ParseStringToChip(blackHole);

            string currentPlayerColor = Console.ReadLine();

            boardService  = initializer.InitBoardService();
            playerService = initializer.InitPlayers(colorParser.ParseStringToPlayerColor(currentPlayerColor),
                                                    boardService, out CurrentPlayerId, out OpponentPlayerId);
            initializer.InitBoard(chipBlackHole, playerService, boardService);
        }
Example #2
0
 public Initializer()
 {
     colorParser = new ColorParser();
 }