from random import random # návrh metodou prototypování, první fáze def simOneGame(): scoreA, scoreB = 0, 0 serving = "A" for i in range(30): if serving == "A": if random() < 0.5: scoreA += 1 else: serving = "B" else: if random() < 0.5: scoreB += 1 else: serving = "A" print(serving, scoreA, scoreB) # jak pokračovat dál? viz slajdy