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.
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.
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 )
Also the new hero.poison( row, col ) is great, that adds some spice!
However can we …
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.
Fixed. It returns a 2d array of fruits’ kinds.
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)
poisoned fruits have kind as “apple-poisoned” or “watermelon-poisoned”
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
Nah, its kind of non-documented feature as it has some side-effects
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 ![]()
The 5,5 and not quite 200,200 was doing my head in ![]()
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.