# AI Extension help!

**URL:** <https://forum.makecode.com/t/ai-extension-help/20587>\
**Category:** Help\
**Created:** [June 12, 2023, 4:32pm UTC](https://forum.makecode.com/t/ai-extension-help/20587 "2023-06-12T16:32:56Z")\
**Posts on this page:** 14\
**Page:** 3

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [October 19, 2023, 4:53pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/41 "2023-10-19T16:53:10Z")

</div>

Another extension to add to my Extension Testing project!

 ![a_few_of_the_many_extensions](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/cdc7b4ae381040571c35467a941dd452e963360a.png)

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [October 19, 2023, 5:18pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/42 "2023-10-19T17:18:30Z")

</div>

Aha! There’s my extensions! I have infested the average user’s makecode toolbox! I’m one step closer to world domination now, muhahahaha

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [October 19, 2023, 5:18pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/43 "2023-10-19T17:18:46Z")

</div>

I have a question though… How does the extension work?  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/4fbbdfcdac63e265bc8a453f547d86d58d8fa207.png)  
I ask because I have no idea what I’m doing.

---

<div class="post-metadata">

**Author:** ![Mega0star01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mega0star01/32/14784_2.png) [@Mega0star01](https://forum.makecode.com/u/Mega0star01)\
**Post date:** [October 19, 2023, 5:18pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/44 "2023-10-19T17:18:48Z")

</div>

BRUH, is there any more extensions?

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [October 19, 2023, 5:59pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/45 "2023-10-19T17:59:58Z")

</div>

Yes… That’s about half of them…

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/36648_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [October 19, 2023, 7:35pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/46 "2023-10-19T19:35:43Z")

</div>

LOL i’m making the post right now! I totally fell asleep before making it XD

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/36648_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [October 20, 2023, 6:17pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/47 "2023-10-20T18:17:41Z")

</div>

Bad news: It’s broken. Converting to javascript is WAY harder than expected. That old link is 100% broken!! (sorry @Blobbey, you’ll have to remove it) Somehow the code in the MakeNet function got jumpled, and the mutate function is spitting 'NaN’s randomly… and I have to get a video about this extension into the newspaper in less than a week 0\_0

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [October 23, 2023, 4:48pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/48 "2023-10-23T16:48:29Z")

</div>

can you send a link i can try to fix it (it happens a lot to me (functions breaking))

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/36648_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [October 23, 2023, 6:13pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/49 "2023-10-23T18:13:07Z")

</div>

Don’t worry I got it!

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/36648_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [October 23, 2023, 9:18pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/50 "2023-10-23T21:18:23Z")

</div>

**The Extension is [HERE](https://forum.makecode.com/t/the-ai-extension-is-here/23603)!**  
TYSM @YuHayate For your help and inspiration, I couldn’t’ve done this without you!

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [October 26, 2023, 5:39pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/51 "2023-10-26T17:39:31Z")

</div>

wow good job @randomuser you did great. looking forward to work with this extension  
although i wont be on the forum for about a month now as i have school and a lot of extra work with my classes (i asked my teacher to give me as much work to study to get the best grades, i felt like i wasn’t the best version of me so i will work on myself for a month),  
**ps.** you extension looks great

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [October 26, 2023, 5:49pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/52 "2023-10-26T17:49:04Z")

</div>

i noticed that you have in all the blocks the number of inputs and outputs. why?  
why not in the create network function you add a name part and instead of two inputs with no description use a name  
example

> **[Turtle Program](https://arcade.makecode.com/16276-25343-56232-73427)**
>
> Fait avec ❤️ dans Microsoft MakeCode Arcade.

i made two lists one of all the names and one with all the information of those names  
so you can make one name list and one list with a `number[]` with the number of inputs and outputs so [in,out]

to get the number of inputs and outputs just find the position in the name array of the ai then in the input/output array and at that same position you have the number of inputs and outputs

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/36648_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [October 26, 2023, 8:52pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/53 "2023-10-26T20:52:47Z")

</div>

Tysm! That’s awesome!

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/36648_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [October 26, 2023, 8:53pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/54 "2023-10-26T20:53:04Z")

</div>

> [@YuHayate](#):
>
> to get the number of inputs and outputs just find the position in the name array of the ai then in the input/output array and at that same position you have the number of inputs and outputs

I considered that as a future update! Thanks for the sample code, I’m definately adding that :0 it would be a bit of reworking, but now that the video is done, I have more time!

[Previous page](https://forum.makecode.com/t/ai-extension-help/20587.md?page=2)
