File tree Expand file tree Collapse file tree 1 file changed +20
-15
lines changed
Expand file tree Collapse file tree 1 file changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,26 @@ class bcolors:
2222run = True
2323li = ["s" , "w" , "g" ]
2424
25- system ("clear" )
26- b = input (
27- bcolors .OKBLUE
28- + bcolors .BOLD
29- + "Welcome to the game 'Snake-Water-Gun'.\n Wanna play? Type Y or N: "
30- + bcolors .ENDC
31- ).capitalize ()
32-
33- if b == "N" :
34- run = False
35- print ("Ok bubyeee! See you later" )
36- elif b == "Y" or b == "y" :
37- print (
38- "There will be 10 matches, and the one who wins more matches will win. Let's start."
39- )
25+ while True :
26+ system ("clear" )
27+ b = input (
28+ bcolors .OKBLUE
29+ + bcolors .BOLD
30+ + "Welcome to the game 'Snake-Water-Gun'.\n Wanna play? Type Y or N: "
31+ + bcolors .ENDC
32+ ).capitalize ()
33+
34+ if b == "N" :
35+ run = False
36+ print ("Ok bubyeee! See you later" )
37+ break
38+ elif b == "Y" or b == "y" :
39+ print (
40+ "There will be 10 matches, and the one who wins more matches will win. Let's start."
41+ )
42+ break
43+ else :
44+ continue
4045
4146i = 0
4247score = 0
You can’t perform that action at this time.
0 commit comments