Bot created for the game generals.io
lahlidahlia / generalsiobot Goto Github PK
View Code? Open in Web Editor NEWBot created for the game generals.io
Bot created for the game generals.io
Spreading entails moving an army to an adjacent empty tile.
Probably will need to pick a new user_id at this point, but will need to hide the user_id sometimes soon before going on ladder.
With the current costs the AI is favoring moving through empty tiles over moving through friendly tiles. Could be because cost of empty = 0 while cost of friendly = 1/size.
Currently to enable and disable debug prints I have to comment out the code. So much work!
It appears that the main issue is that the algorithm is either too slow, or the box that the bot is running on throttles the bot or is not allocating enough CPU. Bot is currently running on a remote machine at school.
Could try to run the bot on personal computer.
Will definitely figure out some ways to optimize the algorithm. For example, astar is being run every single loop. Could make it so that the path is cached and only runs again when there's a new target picked.
The pathfinding algorithm also search through unseen obstacles, which is not ideal because the AI chooses the wrong path or the long path.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.