how to create a loop for multiple players turn

Solutions on MaxInterview for how to create a loop for multiple players turn by the best coders in the world

showing results for - "how to create a loop for multiple players turn"
Ayaan
15 Jan 2017
1num = 0
2num_of_plyrs = 4
3count = 0
4stop = False
5
6while not stop:
7    if count == 4:
8        stop = True
9    if num != num_of_plyrs:
10        num += 1
11        count += 1
12        print("It's Player {0}'s".format(num))
13    elif num == num_of_plyrs:
14        num = 0