/Stefan_Nemanja

"Župan Stefan Nemanja" bot for playing HoMM3, for class "Knowledge-based Systems"

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Stefan Nemanja

This work aims to analyze the various strategies used by players in the popular strategy game "Heroes of Might and Magic 3" (HoMM3) and to systematize them within a structured system. Although there are many resources that explain general strategies in the game, there are currently very few resources that can recommend optimal strategies for specific battle situations in real-time.

Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

To run the bash script and Docker files, ensure you have the following installed:

  1. Java Development Kit (JDK): Ensure JDK 22 or higher is installed.

    java -version
  2. Apache Maven: Ensure Maven is installed.

    mvn -version
  3. Docker: Ensure Docker is installed and running.

    docker --version

Running the project

The provided bash script builds the modules and starts the Spring Boot application. Follow these steps:

  1. Clone the repository:

    git clone https://github.com/slepimis120/Stefan_Nemanja
    cd Stefan_Nemanja
  2. Run the Docker images: After navigating to the parent directory of Stefan_Nemanja, run:

    docker-compose up -d --build
  3. Navigate to the backend folder: After navigating to the backend part of the project, run this to make the script executable:

    chmod +x run-spring-boot.sh
  4. Lastly, run the script:

    ./run-spring-boot.sh

Building Docker performs the following steps:

  • Starts PostgreSQL container.
  • Starts React frontend application

Running the script performs the following steps:

  • Start the Spring Boot application from the service directory.