Devour Dash - Bugs, Feedback

Hi, there!

Sorry, but just could not work on AILeague first months so the last arena was a little “dizzy”.
Next months I can time to time jump in and fix bugs and improve it.
So please share bugs and feedback here.

2 Likes

LookAt returns undefined is a known bug and trying to fix it now (seriously, no idea why it stopped working)

Ok. LookAt should work now, I still no idea what it was. Based on the code it could not work at ALL!!! But! I even checked logs from the period I made this arena and it worked. I don’t understand or its some Mandela Effect Coding.

Added poison ability.

Now you can poison fruits on the field and slow down your opponent (or yourself). Plus poisoned fruits are negative points hehe. Peppers can not be poisoned.

Thanks for the fix @Bryukh , please can you spend some time on the other issues? We have found some other problems too ( I am working in Python )

  • hero.get2dMap() → “TypeError: this._ref.get2dMap() is not a function”
  • min(100,0) → returns “null”, but min(0,100) returns 0. max() does the same
  • Tuples/Dictionaries fail → “Attempted to invoke bookmark for [Funciton]”
    • cell=(10,10)
    • emptyCells={}
    • emptyCells[ cell ] = 20
    • print( empryCells )
  • hero.say() → listed as being there in hints, but fails
  • Hints / Documentation → Many wrong snippests, and also missing information. Could help to have slight update. ( eg. hero.on snippet says to use “slime.moveRight“ which doesnt exist

Also the new hero.poison( row, col ) is great, that adds some spice!

However can we …

  1. find a way to detect it using the get2dMap and look*() functions as this would add some more fun to the complexity of coding. You could then have to work out how to side-step and increase route planning complexity. (eg; lookDir returns with x at end, or tuples or something? … or a whole set of lookPoison or get2dMapPoison())
  2. provide a slime.isPoisoned=True/False
  3. and a params.poisonTime=… ?

Sorry to jump all over this! I just tried to hammer the fruit poison routines - I got the following error and the game level is now stuck in “RUNNING” and needs level reset.

def onSpawnSlime(slime):
  r=0
  c=0
  cnt=0
  while True:
    cnt=cnt+1
    print(“START ==================== #”,cnt)

    if c>19:
      c=0
      r=r+1
      if r>15:
        r=0
        c=0
    else:
      c=c+1

    print(“POISON:”,r,“,”,c)
    hero.poison(r, c)
    pass

hero.on(“spawn-slime”, onSpawnSlime)


Thank you for your feedback. I will process them step by step.

As for addEffect error – should be fixed – forgot to add effects for melons.

1 Like

Fixed. It returns a 2d array of fruits’ kinds.

1 Like

Where is it mentioned? This method should not be available

Fixed about moveRight. What else errors? Also more information in the docs (top right button)

1 Like

poisoned fruits have kind as “apple-poisoned” or “watermelon-poisoned”

1 Like

hero.say() → listed as being there in hints, but fails

Not sure now, it may have come about via a prompt to the AI. I checked now and i cant find it, and when i asked the AI a similar question it correctly just told me to use print.

BTW maybe worth adding “print()” to the hints or docs?

Fixed about moveRight. What else errors? Also more information in the docs (top right button)

Not sure how long it takes to show up, still seeing it like this in the snippet…

Added slime.isPoisoned and slime.poisonEndsAt
Plus you can use hero.time

1 Like

Nah, its kind of non-documented feature as it has some side-effects :slight_smile: So we don’t put it in docs. Maybe when Im ready to dive deep and fix that side effect.

BTW great thank you for fixing the minX/Y and maxX/Y :heart_eyes:

The 5,5 and not quite 200,200 was doing my head in :smiley:

mmmm, sorry, what? I didn’t fix anything related like this, whats the problem here?

The min/max offsets were 5,5 to some odd size, but today i notice them being 0,0 based. It fixed itself since last week.