<s>[INST] # Create a simple text-based game
# Game concept: An adventurer enters a mysterious cave in search of treasure. The game ends when the adventurer finds the treasure or runs out of health.
# Game details:
# 1. The adventurer starts with 100 health points.
# 2. The cave has 3 rooms, each representing a different level of difficulty.
# 3. The adventurer can move between rooms by typing 'north' or 'south.
# 4. In each room, the adventurer encounters a random enemy with a certain amount of health points and attack power.
# 5. The adventurer can choose to 'attack' the enemy or 'run' away.
# 6. If the adventurer chooses to attack, they deal a random amount of damage between 10-20 to the enemy and take a random amount of damage between 5-10 from the enemy.
# 7. If the adventurer chooses to 'run' away, they have a 50% chance of escaping without taking damage.
# 8. If the adventurer's health points fall to 0 or below, the game ends.

import random

# Define the rooms
rooms = [
  {'name': 'Room 1', 'description': 'You are in a dark room.', 'enemy_health': 20, 'enemy_attack': 5},
  {'name': 'Room 2', 'description': 'You are in a room with a small pond.', 'enemy_health': 30, 'enemy_attack': 10},
  {'name': 'Room 3', 'description': 'You are in a room with a chest.', 'enemy_health': 40, 'enemy_attack': 15, 'treasure': True}
]

# Define the adventurer
adventurer = {'health': 100, 'room': rooms[0]}

while True:
  # Display the room description
  print(adventurer['room']['description'])

  # Check if the room has treasure
  if 'treasure' in adventurer['room']:
    print('You found the treasure! Congratulations, you won!')
    break

  # Encounter an enemy
  enemy_health = adventurer['room']['enemy_health']
  enemy_attack = adventurer['room']['enemy_attack']

  # Display the enemy's health and attack power
  print(f'Enemy health: {enemy_health}')
  print(f'Enemy attack power: {enemy_attack}')

  # Ask the adventurer what to do
  action = input('What do you want to do?[/INST]