skillz2019's People
skillz2019's Issues
Elves change their movement based on enemy elves dead
If enemy elves are dead, our elves should attempt to place portals to attack
Elf keeps trying to build in cases where it cant
In cases where an enemy portal is located where an elf is told to place a portal, the elf will keep trying to build and will wait until it does, effectively disabling the elf.
possible fixes
- If the elf sees that it cant be placed it attacks the portal and then places
- If the portal cant build the elf simply skips the portal building phase
- If the elf sees that the portal location is taken, it finds the nearest place to build the portal and then goes there.
A very good idea is to use the can_build method
Portals constantly generate Ice-Trolls even when castle is not in danger
Elves keep attempting to build a portal when attacked
The current bot doesn't take into account if one of the elves is in danger (and i am not talking about bugs that do take elf damage into account). Normally this isn't seen, because the elves attack any elf which is near them, but there are several instances where this still occurs:
- When our elf is attempting to build: the elf will keep running to the portal location even if there are closer portals that need fixing, and even if there are enemy creatures attacking it.
- When one of the two elves is dead: when one of the two elves is dead the first elf runs away to the portal. while this is good, because the ice trolls usually kill the enemy elf, the elf still doesnt attack when it could.
We will probably need to overhaul or change the way building works in the bot, and the priorities it takes when doing so.
Proposed fix: In my opinion at the end result if an enemy elf attacks the elf moving to build it should wait and hit back, unless it is already on the desired portal location. some of the issues here work in conjunction with the changes from issue #7
Feature ideas for the distant future: (We might want to add in the future a feature where the elf sees against what it is dealing against. if there are too many it should escape as seen in issue #7 , if there is a moderate amout of foes it will build a in the place, and if the elf can kill the enemy elf attack it directly {needs to take into account the health difference, the amout of elves attacking us, and how close by the second elf is. we might even have the elf retreat to the second elf}. all of this last paragraph is stuff way way way out into the future if we really want to improve the elf algorithm, as of now its not at all necessary)
side note:
this is very similar to issue #4, but instead of stopping the elf from building in an illegal place we stop the elf from building when enemies are blocking its path.
Elves don't react when attacked by large amounts of ice-trolls
There are many cases in matches where a large amount of ice-trolls attack one of our elves.
The elf does react, but only because of a bug, and it reacts too late.
Short explanation: When a large group of ice-trolls attack the elves, the elves only react if one of them dies. this is pretty problematic for several reasons.
First of all, in cases where the elves are split up, the death of one of them causes the other to retreat, which we don't necessarily want.
Second of all, the elves react too late. they react only after one of the two die, which is pretty late ( usually the living elf has somewhere between a fifth to half his health)
Proposed fix: we have each elf react based on their individual health. if they see a large amount of ice trolls they could run away, or maybe even place a portal (I would stick to the easier method first, and later on see which is better).
Utilize excess amounts of mana to rush or fortify base
Pretty much as the title says, the moment we have more than a certain amount of mana we spend large amounts to solidify our position
The elves should attack the castle or build more portals when there is no major threat
When the elves kill all of the enemy portals they simply wait in place and wait for the elves to appear again. We could have them do different things based on how complex we want to make the program.
For example we could:
- Have them hit the tower and chip off its health.
- Have them place portals directly on the enemy base to secure the win
- Have them re-build all broken portals, to make sure we dont lose our ground.
- Spam the world with 5-6 portals
Elves run away from monsters
Most good team make the elves get close to monsters and then pull them away from the game.
also it could be used to make sure both of them survive
Have creatures spawn in a slower pace to save up mana
By default, the portals spawn out a creature every three turns. this gradually empties the amount of mana. if we were to raise that to four or five, we could build up mana instead of losing.
Elves should attempt to fix all portals, not just the center
Says it in the title. we have a method which fixes the center portal but not the rest. the method should be total for all portals.
Portals should spawn creatures based on priority, in unlimited amounts
Currently the bot spawns creatures based on the order in the list.
The portals should work based on proximiity. the closest portal taking priority when spawning, and the amount depending on the amount of atttacking creatures (or elves).
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.