% TTTNewGameCB.m % Description: This script will confirm a new game if a game is already % running. Then it will ask which player will go first. Then it will run % the game until the game is over. It will calculate and display results. % Inputs: % Outputs: % Team DATT "All DATT and den sum." % 11/17/05 %NewGame = 1 means a New Game must happen because a game is in process. 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 StartNewGame = 0; TTTDifficultyPBCB() %change later TTTWhoGoesFirst() %difficulty end end %End if