This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 03/01/2010 for the course EEE ddsds taught by Professor Saa during the Spring '10 term at Abraham Baldwin Agricultural College.
- Spring '10