Welcome to the ASCII adventure game set in the world of Lord of the Rings! 🧝♂️🌋🗡️
This project is a text-based adventure game where players can immerse themselves in the world of Lord of the Rings and make decisions that will affect the course of their journey. The game's storyline is generated by GPT, a natural language processing AI, which means each gameplay experience can be unique. 🎮📜
Game texts and prompts are in Spanish. Feel free to change them if you want to. 🌍️
For the story to be generated by GPT, ensure that the OpenAI API is correctly configured in the project. You can find the relevant configuration in com.guuri11.lotrascii.helpers.Network.NetworkManager#sendToGPT
. If you don't have access to the OpenAI API, you can modify this part of the code to suit your needs or simply skip the text generation and define your own storyline.
To install and run the game, follow these simple steps:
-
Clone the Repository: Clone this repository to your local machine.
git clone https://github.com/Guuri11/lotr-ascii.git
-
Compile the Project: Navigate to the project directory and compile it using Maven.
cd lotr-ascii mvn clean package
-
Run the Game: Once the project is compiled, run the game with the following command.
java -jar target/lotr-ascii-1.0-SNAPSHOT.jar
All ASCII art are from here https://www.asciiart.eu/books/lord-of-the-rings
Once the game is up and running, follow the on-screen instructions to progress through the story. At different points in the game, you'll be presented with decisions that will affect the direction of your journey. Simply select the option you desire to continue the story.
Enjoy exploring Middle-earth in this thrilling ASCII adventure game! 🧙♂️✨🏰