Skip to content

Halite II

Second version of Halite with planetary conquest mechanics.

Overview

Halite II introduces planetary docking, combat, and more complex strategies.

Resources

Implementation

codeclash.arenas.halite2.halite2.Halite2Arena

Halite2Arena(config, **kwargs)

Bases: HaliteArena

Source code in codeclash/arenas/halite/halite.py
58
59
60
61
62
63
64
65
66
def __init__(self, config, **kwargs):
    super().__init__(config, **kwargs)
    self.run_cmd_round: str = f"{self.executable} --replaydirectory {self.log_env}"
    for arg, val in self.game_config.get("args", self.default_args).items():
        if isinstance(val, bool):
            if val:
                self.run_cmd_round += f" --{arg}"
        else:
            self.run_cmd_round += f" --{arg} {val}"

name class-attribute instance-attribute

name: str = 'Halite2'

description class-attribute instance-attribute

description: str = 'Halite II is a multi-player AI-programming challenge in which bots pilot fleets of spaceships across a continuous space-themed universe.\nPlayers command ships to mine planets for halite, use that resource to build additional ships, and expand control across the map.\nVictory depends on efficient resource gathering, fleet management, and strategic expansion to outcompete rival bots for dominance.\n\nYou have the choice of writing your Halite bot in one of four programming languages: C++, Haskell, OCaml, or Rust.\nExample implementations can be found under the `airesources/` folder.\nYour submission should be stored in the `submission/` folder. This folder currently contains an example OCaml bot, but feel free to use any of the supported languages.\nPlease make sure your main file is named `main.<ext>`, where `<ext>` is the appropriate file extension for your chosen programming language.\nYou may include additional files as needed, but please ensure:\n1. The `submission/` folder contains only files relevant to your bot.\n2. The `submission/` folder ONLY contains a single bot (no multiple bots in one submission).\n3. Your bot can be compiled. See `runGame.sh` under the corresponding `submission/<language>/` folder to see how we will compile and run your bot.\n'