# Procedural generation driving me insane

**URL:** <https://forum.makecode.com/t/procedural-generation-driving-me-insane/33982>\
**Category:** Help\
**Created:** [February 19, 2025, 6:15pm UTC](https://forum.makecode.com/t/procedural-generation-driving-me-insane/33982 "2025-02-19T18:15:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Servillius](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Servillius](https://forum.makecode.com/u/Servillius)\
**Post date:** [February 19, 2025, 6:15pm UTC](https://forum.makecode.com/t/procedural-generation-driving-me-insane/33982/1 "2025-02-19T18:15:33Z")

</div>

> **[procedural TEST](https://arcade.makecode.com/S13926-98850-50355-12195)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Ok, so I’m a bit crazy because I’ve been spending so much time on this and cannot for the life of me solve it. My end goal is to make a map of rooms like Binding of Isaac through procedural generation.

So first I set a binary array.  
000  
000  
000

I set the middle starting room (the starting room) to True. It works out like this.  
000  
010  
000  
–pretty normal, right? It’s position is X1, Y1 because the rows and collumns start at 0.

Then I iterate through the neighboring rooms and set them to True.

010  
011  
010

Hmm, why isn’t the neighbor at 0,1 being set to True? Anyone got any clues?

Here is the jungle of code I hope to incorporate it into.

> **[procedural TEST](https://arcade.makecode.com/S13926-98850-50355-12195)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![CodeOnTheCob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codeonthecob/32/19306_2.png) [@CodeOnTheCob](https://forum.makecode.com/u/CodeOnTheCob)\
**Post date:** [February 19, 2025, 8:43pm UTC](https://forum.makecode.com/t/procedural-generation-driving-me-insane/33982/2 "2025-02-19T20:43:15Z")

</div>

no idea I tried debug mode slow mode it has a mistake on line 66

---

<div class="post-metadata">

**Author:** ![Servillius](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Servillius](https://forum.makecode.com/u/Servillius)\
**Post date:** [February 20, 2025, 1:00am UTC](https://forum.makecode.com/t/procedural-generation-driving-me-insane/33982/3 "2025-02-20T01:00:43Z")

</div>

Uh, not sure why the project hasn’t updated. Going through the project link instead of through the MakeCode Homepage leads to an old copy, not sure why. This might lead to the same link, not sure. The only changes are that in the old version I set room to MyAny instead of create Empty Object. I’ll start a fresh project and copy everything over by hand and see if it changes anything.

> **[procedural TEST](https://arcade.makecode.com/S13926-98850-50355-12195)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Servillius](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Servillius](https://forum.makecode.com/u/Servillius)\
**Post date:** [February 20, 2025, 1:01am UTC](https://forum.makecode.com/t/procedural-generation-driving-me-insane/33982/4 "2025-02-20T01:01:34Z")

</div>

Also the links are all the same? Maybe a problem caused by sharing links for duplicated projects, though I assumed duplicating a project would make an unlinked copy. This is the end goal project I hope to move it into (warning: long)

> **[procedural generation #5](https://arcade.makecode.com/92343-97284-56398-42601)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Servillius](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Servillius](https://forum.makecode.com/u/Servillius)\
**Post date:** [February 24, 2025, 5:37am UTC](https://forum.makecode.com/t/procedural-generation-driving-me-insane/33982/5 "2025-02-24T05:37:51Z")

</div>

Anyone wondering about an update, for some reason it wasn’t iterating over the final loop. I just needed to put literally anything after and the program moved on, fixing the issue.

010  
111  
010

🙂

---

<div class="post-metadata">

**Author:** ![CodeOnTheCob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codeonthecob/32/19306_2.png) [@CodeOnTheCob](https://forum.makecode.com/u/CodeOnTheCob)\
**Post date:** [February 24, 2025, 5:13pm UTC](https://forum.makecode.com/t/procedural-generation-driving-me-insane/33982/6 "2025-02-24T17:13:32Z")

</div>

cool still don’t understand but cool
