# Grand Prix AI League Topic

**URL:** <https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606>\
**Category:** AILeague\
**Created:** [June 1, 2025, 11:07am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606 "2025-06-01T11:07:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![iggymaster99](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/iggymaster99/32/34666_2.png) [@iggymaster99](https://discourse.codecombat.com/u/iggymaster99)\
**Post date:** [June 1, 2025, 11:07am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/1 "2025-06-01T11:07:27Z")

</div>

Grand Prix AI League is now live! Share your tips tricks and bugs you found during this practice arena! Looks like we are gonna be getting a lava lake clone. XD

> **[CodeCombat - Coding games to learn Python and JavaScript](https://codecombat.com/play/ladder/grand-prix)**
>
> Learn typed code through a programming game. Learn Python, JavaScript, and HTML as you solve puzzles and learn to make your own coding games and websites.

---

<div class="post-metadata">

**Author:** ![iggymaster99](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/iggymaster99/32/34666_2.png) [@iggymaster99](https://discourse.codecombat.com/u/iggymaster99)\
**Post date:** [June 1, 2025, 4:39pm UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/2 "2025-06-01T16:39:42Z")

</div>

@Bryukh This torney is very similar to lava lake. How will you prevent people copy and pasting their old code that won the tornament last time?

---

<div class="post-metadata">

**Author:** ![Bryukh](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bryukh/32/19597_2.png) [@Bryukh](https://discourse.codecombat.com/u/Bryukh)\
**Post date:** [June 2, 2025, 7:03am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/4 "2025-06-02T07:03:19Z")

</div>

Yes. This arena is kind of “cheating” for us. We are going to run one experiment with AILeague in autumn which probably will resolve the fate of AILeague. So to save time for that we just reskinned the old arena. There won’t be two arenas in this season so its more like “summer break”. I think to change balance a little or/and add a few features for “grand prix” to make it little different.

---

<div class="post-metadata">

**Author:** ![blasterdrag](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/blasterdrag/32/46594_2.png) [@blasterdrag](https://discourse.codecombat.com/u/blasterdrag)\
**Post date:** [June 2, 2025, 12:50pm UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/5 "2025-06-02T12:50:35Z")

</div>

> [@Bryukh](#):
>
> will resolve the fate of AILeague.

What does that mean?

---

<div class="post-metadata">

**Author:** ![Bryukh](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bryukh/32/19597_2.png) [@Bryukh](https://discourse.codecombat.com/u/Bryukh)\
**Post date:** [June 2, 2025, 1:53pm UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/6 "2025-06-02T13:53:50Z")

</div>

What to do next with AILeague. As any project, and especially AILeague, requires a lot of resources to maintain. New content, balance, and so on.

---

<div class="post-metadata">

**Author:** ![blasterdrag](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/blasterdrag/32/46594_2.png) [@blasterdrag](https://discourse.codecombat.com/u/blasterdrag)\
**Post date:** [June 2, 2025, 5:20pm UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/7 "2025-06-02T17:20:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/3/0/30a5472eef4cbe0e0ac10f568e2804323ddaada2.png)  
when I change my finditems code to walk in a rectagle

---

<div class="post-metadata">

**Author:** ![JustALuke](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/justaluke/32/43608_2.png) [@JustALuke](https://discourse.codecombat.com/u/JustALuke)\
**Post date:** [June 2, 2025, 9:15pm UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/8 "2025-06-02T21:15:43Z")

</div>

ominous

---

<div class="post-metadata">

**Author:** ![k\_k\_javascript](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@k\_k\_javascript](https://discourse.codecombat.com/u/k_k_javascript)\
**Post date:** [June 3, 2025, 8:36am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/9 "2025-06-03T08:36:07Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/a/a/aae549e93b36053638957227524a1aad5286f6ae.png) ![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/d/0/d0a2a6c3c9dc3f1acb9c3956711a188b5cd06d00.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/1/7/17d7c49fe7c2f4e0d65475b5c375817df8d3eadf.png) ![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/e/e/eefca098b846ee624b19d43bab2152c2df50c8f2.png)  
exactly blue lava

---

<div class="post-metadata">

**Author:** ![riticmaster908](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/riticmaster908/32/43503_2.png) [@riticmaster908](https://discourse.codecombat.com/u/riticmaster908)\
**Post date:** [June 3, 2025, 9:27am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/10 "2025-06-03T09:27:33Z")

</div>

hey @Bryukh i need to ask, what is score? there wasnt much documentation in the hints just that it increases the time that the “water” stays there

---

<div class="post-metadata">

**Author:** ![Bryukh](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bryukh/32/19597_2.png) [@Bryukh](https://discourse.codecombat.com/u/Bryukh)\
**Post date:** [June 3, 2025, 9:48am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/11 "2025-06-03T09:48:09Z")

</div>

You get score points for items and it affects how long you water trail remains.

---

<div class="post-metadata">

**Author:** ![riticmaster908](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/riticmaster908/32/43503_2.png) [@riticmaster908](https://discourse.codecombat.com/u/riticmaster908)\
**Post date:** [June 3, 2025, 11:22am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/12 "2025-06-03T11:22:31Z")

</div>

hey sorry for the second question but does hero.waterAtXY return a true/false (like lava lake) or a number value

---

<div class="post-metadata">

**Author:** ![Bryukh](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bryukh/32/19597_2.png) [@Bryukh](https://discourse.codecombat.com/u/Bryukh)\
**Post date:** [June 3, 2025, 12:13pm UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/13 "2025-06-03T12:13:00Z")

</div>

> [@riticmaster908](#):
>
> hey sorry for the second

from the docs

> Returns a number of the water state at the point `{x, y}`.  
> If it’s `0` then the point is clear from water; otherwise, it shows the lifespan (seconds) of water on that point.

---

<div class="post-metadata">

**Author:** ![riticmaster908](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/riticmaster908/32/43503_2.png) [@riticmaster908](https://discourse.codecombat.com/u/riticmaster908)\
**Post date:** [June 3, 2025, 11:16pm UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/16 "2025-06-03T23:16:38Z")

</div>

Daily Tip Of The Day 1:  
your hitbox is a circle with a diameter of 8 units (radius of 4) so to anyone doing item based stratagies (mainly @iggymaster99) you dont have to move directly to the items x/y, only to a spot where your hitbox will touch the item (so you dont snake)

---

<div class="post-metadata">

**Author:** ![coasterwhiz](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/coasterwhiz/32/44975_2.png) [@coasterwhiz](https://discourse.codecombat.com/u/coasterwhiz)\
**Post date:** [June 5, 2025, 4:16am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/17 "2025-06-05T04:16:43Z")

</div>

why does this code not work???

while True:  
herosX = hero.x  
herosY = hero.y  
herosPos = {‘x’: hero.x, ‘y’: hero.y}  
if hero.waterAtXY(hero.x+5, hero.y) == True:  
if hero.waterAtXY(hero.x-5, hero.y) == False:  
hero.moveLeft(1)  
elif hero.waterAtXY(hero.x, hero.y-5) == False:  
hero.moveDown(1)  
elif hero.waterAtXY(hero.x, hero.y+5) == False:  
hero.moveUp(1)

---

<div class="post-metadata">

**Author:** ![riticmaster908](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/riticmaster908/32/43503_2.png) [@riticmaster908](https://discourse.codecombat.com/u/riticmaster908)\
**Post date:** [June 5, 2025, 4:17am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/18 "2025-06-05T04:17:23Z")

</div>

Hero.waterArXY returns numerical values (no water is 0)

---

<div class="post-metadata">

**Author:** ![riticmaster908](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/riticmaster908/32/43503_2.png) [@riticmaster908](https://discourse.codecombat.com/u/riticmaster908)\
**Post date:** [June 5, 2025, 4:17am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/19 "2025-06-05T04:17:40Z")

</div>

Also anyone know who Chiron is?

---

<div class="post-metadata">

**Author:** ![coasterwhiz](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/coasterwhiz/32/44975_2.png) [@coasterwhiz](https://discourse.codecombat.com/u/coasterwhiz)\
**Post date:** [June 5, 2025, 4:19am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/20 "2025-06-05T04:19:46Z")

</div>

no, ive never seen him before. (also why are there so many new ppl in the league who are so good?)  
also thanks for the tip (:

---

<div class="post-metadata">

**Author:** ![coasterwhiz](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/coasterwhiz/32/44975_2.png) [@coasterwhiz](https://discourse.codecombat.com/u/coasterwhiz)\
**Post date:** [June 5, 2025, 4:23am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/21 "2025-06-05T04:23:37Z")

</div>

also this doesn’t work still.

herosX = hero.x  
herosY = hero.y  
herosPos = {‘x’: hero.x, ‘y’: hero.y}  
if hero.waterAtXY(hero.x+5, hero.y) == True:  
if len(hero.waterAtXY(hero.x-5, hero.y)) == 1:  
hero.moveLeft(1)  
elif len(hero.waterAtXY(hero.x, hero.y-5)) == 1:  
hero.moveDown(1)  
elif len(hero.waterAtXY(hero.x, hero.y+5)) == 1:  
hero.moveUp(1)

---

<div class="post-metadata">

**Author:** ![riticmaster908](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/riticmaster908/32/43503_2.png) [@riticmaster908](https://discourse.codecombat.com/u/riticmaster908)\
**Post date:** [June 5, 2025, 7:42am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/22 "2025-06-05T07:42:06Z")

</div>

No water is 0 while water returns a number value (seconds until the water fades)

---

<div class="post-metadata">

**Author:** ![riticmaster908](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/riticmaster908/32/43503_2.png) [@riticmaster908](https://discourse.codecombat.com/u/riticmaster908)\
**Post date:** [June 5, 2025, 7:45am UTC](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606/23 "2025-06-05T07:45:25Z")

</div>

So do this

```python
if hero.waterAtXY(x,y)==0:
    #has no water on x,y, is safe
If hero.waterAtXY(x,y)!=0:
    #has water there, not safe

```

[Next page](https://discourse.codecombat.com/t/grand-prix-ai-league-topic/40606.md?page=2)
