Skip to content
/ aints Public

Screeps AI using ants and other social colony insects as a model.

License

Notifications You must be signed in to change notification settings

tinnvec/aints

Repository files navigation

AInts (WIP)

Screeps AI using ants and other social colony insects as a model.

Creep

  1. If last move was successful or creep is fatigued, increase steps from last site.
  2. If creep is searching, remember the opposite direction to build a path home.
  3. If last move was not successful and creep is not fatigued, increase stuck counter.
    • Instruct creep to suicide if over specified limit.
  4. Pick it up nearby dropped energy.
  5. Take Action if near site
    • Transfer Energy to Spawn
    • Harvest Energy from Source
    • Upgrade Controller
  6. If returning Home, place pheromones for last visited site
    • Reduced by steps taken since visiting the site
  7. Move if not taking action or fatigued
    • Favor forward movement
    • Chosen by search pheromone level
      • Reduced by average level of other pheromone types

Spawn

  • Create creeps capable of working and carrying
    • No limit

Pheromone decay

  • Each pheromone deposit has a decay timer
  • Decay timer is reset on update of pheromone amount

Articles


Thanks

Forked with love from screeps-typescript-starter

OS-style designed after NhanHo/ScreepsOS

About

Screeps AI using ants and other social colony insects as a model.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published