ARTICLE LIBRARY

Practical Screeps articles for the problem you need to solve

Browse 64 published guides by system, difficulty, content type, or topic. Start with What Is Screeps? A Programming Strategy Game or follow the beginner sequence through How to Combine Your First Screeps Room Loop.

42 matching guides

Market and Advanced ResourcesIntermediateGuide

How to Harvest Minerals with an Extractor Safely

Find the room Mineral, require a same-tile owned active Extractor, check mineralAmount, Extractor cooldown, active WORK parts, Creep capacity and range, handle harvest() return codes, and verify Store and regeneration state on later ticks.

17 min read
Room EconomyIntermediateGuide

How to Use Storage Energy Without Draining Your Reserve

Guard room.storage access, calculate withdrawable Energy above a configurable reserve, switch a hauler between withdrawal and delivery, select Spawn and Extension targets deterministically, handle action return codes, and verify same-tick capacity races.

18 min read
Construction and DefenseIntermediateGuide

How to Make Towers Heal the Creep That Needs It Most

Find injured owned Creeps, rank lower hit ratios before missing hits and nearest-Tower range, require active owned Towers with TOWER_ENERGY_COST, save heal() results, avoid caching stale targets, and leave over-heal optimization to a later dispatcher.

17 min read
Controllers and ExpansionIntermediateGuide

How to Detect Controller Downgrade Risk and Recover Safely

Compare ticksToDowngrade with configurable enter and recovery thresholds, use CONTROLLER_DOWNGRADE for context, select an owned ready Upgrader with Energy and active WORK, move to range 3, save upgradeController() results, and exit emergency mode only after recovery.

18 min read
Controllers and ExpansionIntermediateGuide

How to Choose Between Reserving and Claiming a Controller

Separate renewable remote-room reservations from one-time room ownership, require an active CLAIM part and range 1, block owned Controllers and hostile reservations, require explicit claim confirmation and GCL capacity, save return codes, and stop a claim mission after OK.

19 min read
Construction and DefenseIntermediateGuide

How to Create One Road Construction Site Safely

Use a one-time Memory request, validate a visible room and 0–49 coordinates, allow Road placement on natural wall terrain, reject an existing Road or Construction Site, respect MAX_CONSTRUCTION_SITES, disable before createConstructionSite(), and verify later.

17 min read
Publication standard

English articles are published only after source review, official API checks where applicable, JavaScript syntax review where code is present, duplicate-intent checks, and a final score of at least 96.