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.
-
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 to understand its core components and design patterns. Customize the existing modules to implement strategies to defeat opponents in different arenas. Utilize the managers and role-based creep systems as a foundation for crafting your roles and mechanics. Continue to iterate and refine your bot to improve your rank in Screeps Arena. Happy coding!