Skip to content

admon84/screeps-arena-typescript-sample-bot

Repository files navigation

Screeps Arena TypeScript Sample Bot

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.

Getting Started

To get started with this sample bot, follow these steps:

  1. Clone the repository.

  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build
  4. Change the Screeps Arena client to point to the desired dist/arena_* folder.

Bot Architecture

Core Components

  1. Core Class Singleton

    • Manages game state and logic, providing access to common and arena-specific game objects. See Core.
  2. Managers

    • Modular controllers for specific game logic, invoked in the main loop. Examples: Harvest, Military, Spawn.
  3. Creep Roles

  4. Spawn Order Queue

    • Manages and prioritizes creep spawning. See OrderQueue.

Arena Implementations

Each arena has its own specific bot implementation. Detailed documentation for each arena can be found in their respective README files:

Next Steps

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!

About

Screeps Arena Starter Kit + Bot Base

Resources

Stars

Watchers

Forks