Skip to content

Commit 9bfb9ab

Browse files
committed
fix: resolve syntax error for build_docs
1 parent da4124b commit 9bfb9ab

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

other/snake_water_gun.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
"""
22
A simple implementation of the Snake, Water, Gun game.
33
"""
4-
<<<<<<< HEAD
5-
=======
6-
7-
import random
8-
>>>>>>> cb64f9d3ea4c19f69d60567f21cfbc41a0229195
94
import doctest
105
import random
116

@@ -52,9 +47,7 @@ def main():
5247
"""
5348
print("--- Snake, Water, Gun Game ---")
5449
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()
5851
)
5952

6053
if player_input not in ["s", "w", "g"]:
@@ -73,4 +66,4 @@ def main():
7366

7467
if __name__ == "__main__":
7568
doctest.testmod() # Run the doctests
76-
main()
69+
main()

0 commit comments

Comments
 (0)