%   TTTDifficultyPBCB.m
%   Description: This script is run when the difficulty button is clicked.
%   This will ask the user if they want to start a new game if a game is
%   already running. This script will then ask the user what difficulty
%   they want the game to run at.
%   Inputs:
%   Outputs:
%   Team DATT "All DATT and dim sum."
%   11/17/05

%if StartNewGame == 1;
    NewGameConfirmation = menu({'This will start a new game.'; 'This will be recorded as a loss.';'Are you sure you want to start a new game?'}, 'New Game', 'Cancel');
    if NewGameConfirmation == 1
    %Menu selection for difficulty
        StartNewGame = 0;
        DifficultyLevelChoice = menu('Select your difficulty:','Easy','Intermediate','Hard','Cancel');
        switch DifficultyLevelChoice
            case 1
                DifficultyLevel = 1; %Easy
               set(findobj('tag','DifficultyPB'),'string', 'Easy')
            case 2
                DifficultyLevel = 2; %Medium
                set(findobj('tag','DifficultyPB'),'string', 'Intermediate')
            case 3
                DifficultyLevel = 3; %Hard
                set(findobj('tag','DifficultyPB'),'string', 'Hard')
            case 4
                break
        end
        TTTWhoGoesFirst()                
    end
%end

%Use difficulty in WhoGoesFirst function call...
