Preparing Development Environment
To participate in ANL2025 2025, you need to prepare a local development environment in your machine, download the skeleton, and start hacking. This section of the documentation describes two ways to do that.
This is the recommended method. It requires you to use an installation of python 3.11 or later on your machine.
0. Installing Python
If -- for some reason -- you do not have python installed in your machine, start by installing it from python.org. You can also use any other method to install python 3.11 or later.
1. Creating and activating a virtual environment
Info
optional but highly recommended
As always recommended, you should create a virtual environment for your development. You can use your IDE to do that or simply run the following command:
You should always activate your virtual environment using:Of course, you can use any other method for creating your virtual environment (e.g. anaconda, hatch, poetry, pyenv, virtualenv or any similar method). Whatever method you use, it is highly recommended not to install packages (anl2025 or otherwise) directly on your base python system.
2. Installing the ANL2025 package
The second step is to install the anl2025
package using:
You can run the following command to check the versions of ANL and NegMAS on your machine:
You should get at least these versions:
For a test tournament, you can use the command line interface (CLI):
If no errors are shown, you have successfully installed ANL! You can now start developing your agent.
3. Development
The next step is to download the template from here. Please familiarize yourself with the competition rules available at the competition website. After downloading and unpacking the template, you should do the following steps:
- Modify the name of the single class in
myagent.py
(currently calledNewNegotiator
) to a representative name for your agent. We will useNewNegotiator
here. You should then implement your agent logic by modifying this class.- Remember to change the name of the agent in the last line of the file to match your new class name (
NewNegotiator
).
- Remember to change the name of the agent in the last line of the file to match your new class name (
- Start developing your agent as will be explained later in the tutorial.
-
You can use the following ways to test your agent:
- Run the following command to test your agent from the root folder of the extracted skeleton:
- You can also use your favorite IDE, and run the
myagent.py
file directly. - You can directly call
anl2025_tournament()
passing your agent as one of the competitors. This is the most flexible method and will be used in the tutorial. Check out the tutorials for more details!
-
Submit your agent to the official submission website:
- Remember to update the
Class Name
(NewNegotiator
in our case) andAgent Module
(myagent.myagent
in our case) in the submission form on the competition website to your own name. - If you need any libraries that are not already provided by
anl2025
, please include them in theDependencies
in a semi-colon separated list when submitting your agent.
- Remember to update the