Coder Social home page Coder Social logo

botg-refree's People

Contributors

illedan avatar spaceorc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

botg-refree's Issues

enemy Deadpool not becoming visible when my heros stand in the same bush

I played some games vs Kikoo and noticed he places his Deadpool in a bush fairly early.
So i made a huntHiddenHero function but noticed that the Deadpool was not revealed when both my heros stood in the same bush as him (one stood on the exact same coord as Deadpool).
I checked that he did not use STEALTH just before (5 rounds) my heros entered the bush.
Deadpool used STEALTH twice during the game, but long before he entered the bush.

I suspect Hero.invisibleBySkill is not set to false as it should at STEALTH duration end, this could give trouble in the first part of Game.updateVisibility() forcing the hero.visible to be set false.

I have not submitted my (CG player name is also cleanrock) code with this huntHiddenHero.
Hopefully you can make a unit test to investigate this.

Groot target closest hero no matter the range

The statement says :

When damaged, they attack the closest Hero, if there is any in 300 range.

I got a replay (https://www.codingame.com/replay/301373063, Frame 142) where the groot is at y99 and my hero is at y533 and still he runs towards my hero ...

I would say wrong statement or wrong groot behaviour
If i found the right code passage i would say the code miss the 300 limit

void aggressiveBehavior(List<Unit> allUnits) { Unit attacker = allUnits.stream() .filter(u -> u instanceof Hero) .sorted((u1, u2) -> u1.distance2(this) < u2.distance2(this) ? -1 : 1) .findFirst() .get(); Point target = attacker; if (distance2(camp) < Const.AGGROUNITRANGE2) { this.attackUnitOrMoveTowards((Unit) target, 0.0); } else { this.state = CreatureState.runningback; this.runTowards(camp); } }
it just takes the closest hero

with if (distance2(camp) < Const.AGGROUNITRANGE2) { it only measures the distance to the own camp
which is the following part of the statement

They chase the targeted hero up to a maximum distance of 300, after which they return to their spawn point.

so in most cases he will strike the enemy even if he is not in 300 range when he got hit

If you are going to fix the code ... this will affect the silver boss

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.