Skip to content

Latest commit

 

History

60 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PeacemakerAI is a fair-play skirmish AI bot for Warzone2100, crafted in modern JavaScript with assistance from advanced large language models to ensure fair, strategic gameplay. Surpasses NullBot, Cobra, and BoneCrusher with fair-play tactics by leveraging spatial data stores and enhanced droid awareness.

PeacemakerAI is released under the MIT license, so there are no warranties or limitations whatsoever. Run this code at your own risk as it may absorb your system, your life, or invoke a new world order!


Installation

Download the mod package or source archive from github.com/duckfood/PeacemakerAI/releases

To install the pre-built mod package place PeacemakerAI.wz in the autoload folder for your version of Warzone-2100 (eg.data/warzone2100/mods/4.7.0/autoload)

To install from source unzip or git clone into the mods folder for your version of Warzone-2100 (eg. data/warzone2100/mods/4.7.0), then run make.bat or make.sh to install the mod package.

To reveal the location of your wz2100 configuration directory go to options menu in game, then click the small "Open Configuration Directory" text at the bottom-left of blue menu window.

Features

  • Lightweight Spatial Data Store: Leverages persistent data stores for observed objects and spatial queries. Enhanced decision-making without knowledge of unseen droids and structures.
  • Human-like Operational Constraints: Operates with the knowledge and constraints of a human player for fair play. Knows what a player would have the opportunity to know.
  • Enhanced Droid Intelligence: Utilizes queued timers to enhance droid awareness while maintaining smooth performance. Droids operate efficiently and purposefully, with self preservation top priority.
  • Outperforms NullBot, Cobra, Bonecrusher, SemperFi, and FishBot: Bests existing bots despite their knowledge of unseen objects. Efficiently pacifies multiple opponents in free for all for total world peace!

Attribution

Inspired by the prototypical SemperFi from the base Warzone 2100. Although they share similar naming conventions and structure, PeacemakerAI has undergone significant revisions and enhancements thanks to assistance from qwen3, granite4, deepseek-coder-v2, and gpt4 large language models. Special thanks to GitHub Copilot and Claude Haiku 4.5 for assistance solving the toughest bugs.

Motivation

PeacemakerAI grew out of a project to explore advanced JavaScript while leveraging large language models for coding assistance. It does not cheat in any known way. If you see it doing the impossible, open an issue with screenshots. If you find a crack in it's strategy open an issue.


For the latest updates and screenshots visit duckfood.github.io/PeacemakerAI


Dispatching would-be rivals

Cobra, charmed Cobra1 T1 start

Cobra2 T4 start

Cobra3 T2 start

Cobra4 T1 start seamap


FishBot, and chips FishBot1 T2 start

FishBot2 T2 start

FishBot3 T4 start


BoneCrusher, crushed BoneCrusher1 T1 start

BoneCrusher2 T3 start


SemperFi, comply SemperFi1 T1 start


NullBot, nullified NullBot1 T4 start


Neighborhood recycling initiative Neighborhood1 T2 start

Neighborhood2 T2 start seamap


Basebuilding for success Basebuilding1

Basebuilding2

github.com/duckfood/PeacemakerAI/releases