Coder Social home page Coder Social logo

skillz2019's People

Contributors

katzuv avatar pauloalbert avatar

Watchers

 avatar

skillz2019's Issues

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

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).

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

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 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.