![](/uploads/1/2/5/5/125522592/225905306.jpg)
What is Screeps? Screeps is a game where you pick a room in a large grid of rooms and write JavaScript code to control AI units called creeps to harvest resources, upgrade the room, build structures, attack, and defend. If you play games, it’s basically an MMO RTS where you do all the programming for your player’s units.
About This GameScreeps Arena is a strategy PvP game for programming enthusiasts, wherein the core mechanic is programming your units AI.
![Screeps api Screeps api](/uploads/1/2/5/5/125522592/925065551.jpg)
Pretty sure this is the most stupid question asked but I'm trying to access the Pathfinder module in the simplest way possible, by including the following in my main loop:Pathfinder.search(creep.pos, creep.pos)Aware that this will give a zero response because from and to are the same but just trying to call the function. And all I get is 'Pathfinder is not defined'. Pretty sure this is a fundamental misunderstanding on my part re Javascript modules but can't for the life of me figure it out.
![](/uploads/1/2/5/5/125522592/225905306.jpg)