This repository contains a TypeScript starter kit and bot base for Screeps Arena. It provides an extensible framework for developing bots, including core game state management, role-based creep behavior, and prioritized spawning.
To get started with this sample bot, follow these steps:
-
Clone the repository.
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Change the Screeps Arena client to point to the desired
dist/arena_*
folder.
The bot is organized with a Core class for game state management, high-level task Managers, role-based stateful Creeps, and a priority Spawn queue.
-
Core Class Singleton
- Manages game state and logic, providing access to common and arena-specific game objects. See Core.
-
Managers
-
Creep Roles
-
Spawn Order Queue
- Manages and prioritizes creep spawning. See OrderQueue.
Each arena has its own specific bot implementation. Detailed documentation for each arena can be found in their respective README files:
Explore the bot's architecture and develop new strategies for different arenas. Customize the managers and role-based creeps to fit your gameplay style. Iterate and refine your bot to progress in Screeps Arena. Happy coding!