app/src/main/java/com/zenappse/memorymatcher/TabbedGameActivity.java
private void resetGame(boolean updateUI) {
        gameController.resetGame();

        if (updateUI) {
            mGridOneFragment.onLastGameScoreChange(gameController.getLastGameScore());
            mGridTwoFragment.onLastGameScoreChange(gameController.getLastGameScore());

            mGridOneFragment.onGameReset(gameController.getGameGridCardDeck());
            mGridTwoFragment.onGameReset(gameController.getGameGridCardDeck());
        }
        gameState.setGameController(gameController);
        gameState.saveState();
    }
/**
     * Resets the current game instance and updates the UI if param is true
     *
     * @param updateUI Boolean to determine whether to update the UI or not
     */
Resets the current game instance and updates the UI if param is true
@param updateUI Boolean to determine whether to update the UI or not
Resets the current game instance and updates the UI if param is true @param updateUI Boolean to determine whether to update the UI or not
private void resetGame(boolean updateUI) {
        gameController.resetGame();
        if (updateUI) {
            mGridOneFragment.onLastGameScoreChange(gameController.getLastGameScore());
            mGridTwoFragment.onLastGameScoreChange(gameController.getLastGameScore());
            mGridOneFragment.onGameReset(gameController.getGameGridCardDeck());
            mGridTwoFragment.onGameReset(gameController.getGameGridCardDeck());
        }
        gameState.setGameController(gameController);
        gameState.saveState();
    }
private void resetGame ( boolean updateUI ) { gameController . resetGame ( ) ; if ( updateUI ) { mGridOneFragment . onLastGameScoreChange ( gameController . getLastGameScore ( ) ) ; mGridTwoFragment . onLastGameScoreChange ( gameController . getLastGameScore ( ) ) ; mGridOneFragment . onGameReset ( gameController . getGameGridCardDeck ( ) ) ; mGridTwoFragment . onGameReset ( gameController . getGameGridCardDeck ( ) ) ; } gameState . setGameController ( gameController ) ; gameState . saveState ( ) ; }
Resets the current game instance and updates the UI if param is true
 @param updateUI Boolean to determine whether to update the UI or not
Resets the current game instance and updates the UI if param is true @param updateUI Boolean to determine whether to update the UI or not