Exemplo n.º 1
0
        public static void Main()
        {
            FormOpeningLogo formOpeningLogo = new FormOpeningLogo();

            OtheloGameManager gameUI = new OtheloGameManager();

            gameUI.RunGame();
        }
Exemplo n.º 2
0
        private void initializeOtheloGame()
        {
            string player1Name       = getValidNameFromUser(k_Player1);
            string player2Name       = null;
            bool   isAgainstComputer = false;

            byte      boardSize = getValidBoardSizeFromUser();
            eGameMode gameMode  = getValidGameMode();

            if (gameMode == eGameMode.AgainstComputer)
            {
                player2Name       = k_ComputerName;
                isAgainstComputer = true;
            }
            else
            {
                player2Name = getValidNameFromUser(k_Player2);
            }

            m_OtheloGameManager = new OtheloGameManager(boardSize, player1Name, player2Name, isAgainstComputer);
            m_OtheloGameManager.InitializeGame();
        }