This project is a basic bot that interacts with the game Territorial.io using Selenium. It automatically joins lobbies and performs simple actions.
-
Clone the repository:
git clone git@github.com:Guillaume-gillard/Territorial.io-Bot.git cd Territorial.io-Bot
-
Create and activate a virtual environment:
python -m venv env # For Windows env\Scripts\activate # For Mac/Linux source env/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Run the bot:
python main.py
This bot automatically selects a lobby in Territorial.io, chooses a starting position, and performs actions such as expanding territory and analyzing opponents.
main.py
: Entry point for starting the bot.player.py
: Contains the logic for interacting with the game (e.g., selecting start positions, expanding, etc.).worker.py
: Contains common functions such as taking screenshots and analyzing pixels.game.py
: Helper class for managing game states and UI interactions.