From 4e41c83b0005e236121c0ea004235f6606fde3a2 Mon Sep 17 00:00:00 2001 From: "Gu://em_" Date: Fri, 6 Feb 2026 11:50:00 +0100 Subject: [PATCH] okeeein --- .gitignore | 31 +++++++++++++ README.md | 56 +++++++++++++++++++++++ pom.xml | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 218 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 pom.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1178b61 --- /dev/null +++ b/.gitignore @@ -0,0 +1,31 @@ +*.swp +.idea +.vertx +javadoc +server + +*.class +*.log +*.ctxt +.mtj.tmp/ +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar +hs_err_pid* +replay_pid* +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +.mvn/wrapper/maven-wrapper.jar +.project +.classpath diff --git a/README.md b/README.md new file mode 100644 index 0000000..451855b --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# Creeps. + +## Brief + +This document is a quick overview of the creeps given files. + +## What's in the archive + +In the provided archive you will find the following files: + + * `README.md`: this file. + * `pom.xml`: the sample maven project file that you must use for your project. + * `creeps-server.jar`: the server, for you to train on. + * `given.jar`: a compiled java library to help you in your endeavor. + * `given-javadoc.jar`: given library documentation, can be extracted with `jar xf`. + +## Installing the given jar to your local repository + + * Make sure the folder `~/.m2/repository/` exists, if not create it + (assuming you have built maven projects before, the folder should already + exist). + * Run the command `mvn install:install-file -Dfile=given.jar -DgroupId=com.epita -DartifactId=given -Dversion=4.0-SNAPSHOT -Dpackaging=jar`. + * You should be good to use the provided pom.xml file. + +In case the assistants publish a new version of the file, simply repeat the process again. + +### First run: + +`java -jar creeps-server.jar --printAchievements=true` will print +the list of all achievements you can get. + +### Tutorial: + +`java -jar creeps-server.jar --trackAchievements=true --enableEnemies=false --enableGC=false --citizenFeedingRate=100000` +starts the server without enemies, without Hector and without starvation. +Ideal for early development. + +### The game, standard configuration: + +`java -jar creeps-server.jar --trackAchievements=true` +starts the server with the setup that will be used on the live server. + +## Web client + +The web client is enabled by default when running the local server. +To use it, you have to connect to `http://localhost:port` where port is +either 1337 by default or the value of the -httpPort option given to the +server. + +## Documentation + +The documentation is generated using Javadoc. +To use it, you can extract `given-javadoc.jar` with `jar xf`. +You can then open the `index.html` file using any web browser. + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..76ebd52 --- /dev/null +++ b/pom.xml @@ -0,0 +1,131 @@ + + + 4.0.0 + + com.epita + 1.0.0-SNAPSHOT + creeps + + + UTF-8 + 21 + + 1.18.42 + 2.20.1 + 1.5.23 + 2.0.17 + 4.7.0 + 4.2.9 + 2.0.1.Final + 5.14.1 + 4.0-SNAPSHOT + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.6.1 + + + package + + shade + + + + + *:* + + module-info.class + META-INF/versions/*/module-info.class + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + META-INF/MANIFEST.MF + META-INF/LICENSE* + META-INF/NOTICE* + + + + + + + com/epita/creeps/Program + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.14.1 + + + + + + + + com.epita + given + ${given.version} + + + + org.projectlombok + lombok + ${lombok.version} + + + + org.slf4j + slf4j-api + ${slf4j-api.version} + + + + ch.qos.logback + logback-classic + ${logback-classic.version} + + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + + + + com.konghq + unirest-java-core + ${unirest-core.version} + + + + com.konghq + unirest-objectmapper-jackson + ${unirest-objectmapper.version} + + + + javax.validation + validation-api + ${validation-api.version} + + + + org.junit.jupiter + junit-jupiter-api + ${junit-jupiter.version} + test + + + +