Sure! Below is a simple text-based number guessing game written in Python. The player has to guess a randomly generated number between 1 and 100. The game gives hints if the guess is too high or too low.
You can copy and run this code in your local Python environment:
```python
import random
def number_guessing_game():
print("Welcome to the Number Guessing Game!")
print("I'm thinking of a number between 1 and 100.")
# Randomly


