Esempio n. 1
0
        private void handleSituationAfterTurn(OthelloLogic.Utilities.checkNextStepForTheProgram i_gameSituationAfterTurn)
        {
            Ex02.ConsoleUtils.Screen.Clear();
            printNameOfThePlayerThatPlay();
            printBoard();

            switch (i_gameSituationAfterTurn)
            {
            case OthelloLogic.Utilities.checkNextStepForTheProgram.EndGame:
                Console.WriteLine("End Game");
                break;

            case OthelloLogic.Utilities.checkNextStepForTheProgram.TwoPlayerCantPlay:
                Console.WriteLine("The Two Players Can't Play");
                break;

            case OthelloLogic.Utilities.checkNextStepForTheProgram.InvalidInput:
                Console.WriteLine("Input is invalid. Input need to contain upper letter and a digit. Example: E2");
                break;

            case OthelloLogic.Utilities.checkNextStepForTheProgram.IllegalStep:
                Console.WriteLine("IllegalStep. Try other Step");
                break;
            }
        }
Esempio n. 2
0
 private void checkIfNeedStopGame(string i_CheckTheTerm)
 {
     if (((i_CheckTheTerm == "Q") || (i_CheckTheTerm == "q")))
     {
         m_isNeedToStopGame = OthelloLogic.Utilities.checkNextStepForTheProgram.Quite;
     }
 }