Example #1
0
 private void initGame()
 {
     m_Table = new CheckersTable(m_TableSize, m_NumOfPlayers);
     m_Table.printTable();
     m_PlayerOne = new Player(m_FirstUserName, 0, 0);
     m_PlayerTwo = new Player(m_SecondUserName, 0, 1);
     m_Turn      = m_FirstUserName + "\'s";
     playGame();
 }
Example #2
0
 // starts a new game if the users say so
 private void startNewGame()
 {
     Ex02.ConsoleUtils.Screen.Clear();
     Console.WriteLine("-- We are starting a new game -- GOOD LUCK !");
     m_Table = new CheckersTable(m_TableSize, m_NumOfPlayers);
     m_Table.printTable();
     m_Turn = m_PlayerOne.m_Name + "\'s";
     playGame();
 }
Example #3
0
 public CheckersLogic(CheckersTable i_Table, Player i_Player)
 {
     m_CheckersTable = i_Table;
     m_TableSize     = m_CheckersTable.m_Size;
     m_Player        = i_Player;
 }