Dentro de las etiquetas de , vamos a escribir un juego RPG basado en texto con un menú de estado. Aquí hay un ejemplo básico de cómo se vería:
¡Bienvenido al juego RPG!
Este sería un simple juego RPG en el que el jugador tiene un nombre, nivel, vida, ataque y defensa. A través de la función `mostrarEstado()`, se puede ver el estado actual del jugador. Este juego se puede expandir aún más con más funciones y mecánicas de juego. ¡Espero que disfrutes jugando!