BEING MAINPROGRAM
INITIALISATION
set ReqPts to 9
set each players points to 0
END INITIALISATION
toss and decide server
REPEAT
server serves the ball
REPEAT
play the rally
UNTIL rally is won
IF server wins rally THEN
increment server's points by 1...