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 9bfb9ab commit e50ff0aCopy full SHA for e50ff0a
other/snake_water_gun.py
@@ -1,6 +1,7 @@
1
"""
2
A simple implementation of the Snake, Water, Gun game.
3
4
+
5
import doctest
6
import random
7
@@ -47,7 +48,9 @@ def main():
47
48
49
print("--- Snake, Water, Gun Game ---")
50
player_input = (
- input("Enter your choice (s for snake, w for water, g for gun): ").lower().strip()
51
+ input("Enter your choice (s for snake, w for water, g for gun): ")
52
+ .lower()
53
+ .strip()
54
)
55
56
if player_input not in ["s", "w", "g"]:
@@ -66,4 +69,4 @@ def main():
66
69
67
70
if __name__ == "__main__":
68
71
doctest.testmod() # Run the doctests
- main()
72
+ main()
0 commit comments