

My first AI was effectively a state machine hastily written in Javascript to bootstrap my entry into the world of Screeps.I can break down the history of my Screeps AI to five stages, separated by the largest rewrites: Overmind: a brief historyĪny large programming project has an iterative write-deploy-rewrite rhythm to it, but some rewrites are larger than others. Your available CPU is limited, so you have to write an AI that is both powerful and efficient.
#Screeps private server commands code
Screeps is an MMORTS (massively multiplayer online real-time strategy game) with a unique twist: instead of controlling your units directly, you write code in Javascript to build and manage them.

There is an official server hosted by the developers, and there are multiple open private servers. What is Screeps? Screeps is an open source MMO RTS game for programmers, where your mission is to code an AI. There’s a lot of changes and improvements I’d like to make, and I’ve enjoyed reading other people’s blogs about their evolving Screeps AI’s, so I’ve decided to start my own.Īn extension is a structure that allows spawns to create new creeps with extra body parts Costs 3000 points to build, taking 600 seconds to build with one WORK body part and costing 3000 energy. I stopped playing the game for a few months over the last summer, but I was recently surprised to find my code was still running like a well-oiled machine on the public servers, so I decided to pick the game back up again. Since I started playing the game – exactly 11 months ago as of today – I’ve created a Screeps AI, with some ~50,000 additions to the GitHub repository, which I dubbed Overmind (much of the code is vaguely Starcraft-themed). The units run in real-time even when you aren’t actively playing the game, and the game progresses on the scale of weeks or months, so the more you can automate, the better.Ī summary of Screeps game info, release dates, and news coverage. However, unlike most RTS games, you cannot actively control your units you must instead write code to govern their behavior using JavaScript (or a transpiled language). Like most RTS games, the core objective of Screeps is to expand your territory and defend against other players. (If you didn’t know me in early 2017, it’s probably because I was hiding in my room programming.) If you knew me in early 2017, you probably knew I became entirely too invested writing an AI for the programming strategy game Screeps.
