dumb.js: a simple PSO based AI that stronger than bonecrusher

Did you create a mod, map, music, or a tool? Present them here and earn feedback!
Note: addon requests do not belong here.
Note, everything uploaded to this forum, MUST have a license!
Post Reply
wanjia1
Rookie
Rookie
Posts: 22
Joined: 01 Nov 2023, 06:05

dumb.js: a simple PSO based AI that stronger than bonecrusher

Post by wanjia1 »

It a AI based on PSO algorithm,and it can defeat any insane AI in 15 minutes,only in NTW T1 Fullbase.
It can also defeat 3 insane nullbot or 5 insane nexus in NTW maps.
It only have 255 lines of code.

It have no explicit tactic code,but simply cluster droids when attacked.
It have no memory.everything has to be calculated every step.
Its droid templates is hard-coded, it use cannons exclusive, and don't build factories or AAs.
Attachments
dumb.zip
(18.62 KiB) Downloaded 45 times
wanjia1
Rookie
Rookie
Posts: 22
Joined: 01 Nov 2023, 06:05

Re: dumb.js: a simple PSO based AI that stronger than bonecrusher

Post by wanjia1 »

license:CC0
screenshot (AI attached player vs insane bonecrusher):
Attachments
Screenshot_2023-12-02_10-46-02.jpg
wanjia1
Rookie
Rookie
Posts: 22
Joined: 01 Nov 2023, 06:05

Re: dumb.js: a simple PSO based AI that stronger than bonecrusher

Post by wanjia1 »

bugfix:
now the AI can build defense structure,laser satellite and AAs.This make it competent for T4 games.
it can defeat any hard AI in 45 minutes,in any NTW Fullbase game.
Attachments
dumb.zip
(19.2 KiB) Downloaded 41 times
wanjia1
Rookie
Rookie
Posts: 22
Joined: 01 Nov 2023, 06:05

Re: dumb.js: a simple PSO based AI that stronger than bonecrusher

Post by wanjia1 »

bugfix:
now the AI can build VTOL and oil derricks. its performance in ntw Nobase | Lowbase 1v1 game is above hard bonecrusher and below hard cobra.
also,it will build modules for structures.
it still fails on low oil map (even weaker than nexus). because all truck will move to a structure that being built and unable to get oils.
there is 497 lines of code in total.
Attachments
dumb.zip
(5.91 KiB) Downloaded 22 times
Post Reply