Unformatted text preview: % Assuming that I win the volley if above statement return 0 if y == 1 % Add 1 to opponent's score if he win the volley Opponent = Opponent + 1; if Opponent == 21 break % Terminate game as Opponent win end else x = 1; % I won the volley hence become server end end end end end i; Me; Opponent; if Me == 21 Number_of_game_I_win = Number_of_game_I_win + 1; end end Total_game_I_win = Number_of_game_I_win Probability = Total_game_I_win/100 P...
View
Full Document
 Spring '10
 saa
 Tennis shots, end end end, volley Opponent

Click to edit the document details