code basic but fun game
code basic but fun game
Here's a simple **Python-based number guessing game** you can run in any
Python environment (like IDLE or VS Code). Let me know if you want a different kind
of game (e.g. web-based, mobile, graphical, etc.).
---
```python
import random
def play_game():
number_to_guess = random.randint(1, 100)
attempts = 0
while True:
try:
guess = int(input("Take a guess: "))
attempts += 1
if __name__ == "__main__":
play_game()
```
---
### 🔁 Features
---