/* * buttonSquare_Clicked is an event handler method that will execute when the button square is clicked. */ private void buttonSquare_Clicked(object sender, EventArgs e) { doPlayerMove(sender as ButtonSquare); if (m_CheckersGame.GetCurrentPlayer().IsAI&& !m_CheckersGame.IsGameOver()) { m_CheckersGame.ExecuteComputerAction(); m_FormCheckersGame.ChangePlayerTurn(); } // Check if the game is over if (m_CheckersGame.IsGameOver()) { doWhenCurrentGameRoundIsOver(); } }