File tree 1 file changed +20
-15
lines changed
1 file changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,26 @@ class bcolors:
22
22
run = True
23
23
li = ["s" , "w" , "g" ]
24
24
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
40
45
41
46
i = 0
42
47
score = 0
You can’t perform that action at this time.
0 commit comments