Skip to content

gillard-guillaume/Territorial.io-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Territorial.io Bot

This project is a basic bot that interacts with the game Territorial.io using Selenium. It automatically joins lobbies and performs simple actions.

Environment Setup

  1. Clone the repository:

    git clone git@github.com:Guillaume-gillard/Territorial.io-Bot.git
    cd Territorial.io-Bot
  2. Create and activate a virtual environment:

    python -m venv env
    # For Windows
    env\Scripts\activate
    # For Mac/Linux
    source env/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run the bot:

    python main.py

Project Brief

This bot automatically selects a lobby in Territorial.io, chooses a starting position, and performs actions such as expanding territory and analyzing opponents.

File Structure

  • 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.

About

Territorial.io Bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages