We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da4124b commit 9bfb9abCopy full SHA for 9bfb9ab
other/snake_water_gun.py
@@ -1,11 +1,6 @@
1
"""
2
A simple implementation of the Snake, Water, Gun game.
3
4
-<<<<<<< HEAD
5
-=======
6
-
7
-import random
8
->>>>>>> cb64f9d3ea4c19f69d60567f21cfbc41a0229195
9
import doctest
10
import random
11
@@ -52,9 +47,7 @@ def main():
52
47
53
48
print("--- Snake, Water, Gun Game ---")
54
49
player_input = (
55
- input("Enter your choice (s for snake, w for water, g for gun): ")
56
- .lower()
57
- .strip()
50
+ input("Enter your choice (s for snake, w for water, g for gun): ").lower().strip()
58
51
)
59
60
if player_input not in ["s", "w", "g"]:
@@ -73,4 +66,4 @@ def main():
73
66
74
67
if __name__ == "__main__":
75
68
doctest.testmod() # Run the doctests
76
- main()
69
+ main()
0 commit comments