# Does anyone know how to decompress a string?

**URL:** <https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372>\
**Category:** Help\
**Created:** [March 9, 2023, 5:06pm UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372 "2023-03-09T17:06:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![CreativeUsername](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/creativeusername/32/9601_2.png) [@CreativeUsername](https://forum.makecode.com/u/CreativeUsername)\
**Post date:** [March 9, 2023, 5:06pm UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372/1 "2023-03-09T17:06:01Z")

</div>

I’m wanting to input a string like this for example  
15f174w17l105f  
And have it output this  
15 f 174 w 17 l 105 f  
I’m having trouble because sometimes it either only does the space left of the letter, or it freezes all of Makecode Arcade.

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [March 9, 2023, 5:12pm UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372/2 "2023-03-09T17:12:13Z")

</div>

> [@CreativeUsername](#):
>
> l

Whats this peice for?

---

<div class="post-metadata">

**Author:** ![CreativeUsername](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/creativeusername/32/9601_2.png) [@CreativeUsername](https://forum.makecode.com/u/CreativeUsername)\
**Post date:** [March 9, 2023, 5:53pm UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372/3 "2023-03-09T17:53:38Z")

</div>

It’s just the letter L

---

<div class="post-metadata">

**Author:** ![CreativeUsername](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/creativeusername/32/9601_2.png) [@CreativeUsername](https://forum.makecode.com/u/CreativeUsername)\
**Post date:** [March 9, 2023, 7:45pm UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372/4 "2023-03-09T19:45:20Z")

</div>

This is what I have so far

![Screenshot 2023-03-09 1.30.37 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/614a051c29b4b51e9e8aae8e7c0ca73af4a99ce2.png)

 ![Screenshot 2023-03-09 1.29.49 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/8e8bf88183983c145a91631fe7a0d1726bd37184.png)

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [March 9, 2023, 9:32pm UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372/5 "2023-03-09T21:32:22Z")

</div>

Well yes but the rest have numbers

---

<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:** [March 16, 2023, 10:39pm UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372/7 "2023-03-16T22:39:18Z")

</div>

Can you explain what do the letters signify? Are they just random separators or do they have a meaning?

---

<div class="post-metadata">

**Author:** ![CreativeUsername](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/creativeusername/32/9601_2.png) [@CreativeUsername](https://forum.makecode.com/u/CreativeUsername)\
**Post date:** [March 17, 2023, 4:20pm UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372/8 "2023-03-17T16:20:24Z")

</div>

They represent certain tiles, there are 4 types total

---

<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:** [March 18, 2023, 1:44am UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372/9 "2023-03-18T01:44:34Z")

</div>

Could you provide definitions for them? It would make it easier to create a base or mockup for this kind of project.

---

<div class="post-metadata">

**Author:** ![CreativeUsername](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/creativeusername/32/9601_2.png) [@CreativeUsername](https://forum.makecode.com/u/CreativeUsername)\
**Post date:** [March 18, 2023, 3:22am UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372/10 "2023-03-18T03:22:06Z")

</div>

I think I know what you mean by definitions? Here’s what they represent in order  
Wall  
Floor  
Ladder  
Player

---

<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:** [March 20, 2023, 5:10pm UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372/11 "2023-03-20T17:10:32Z")

</div>

And what do the numbers beforehand represent? Is that their position?

---

<div class="post-metadata">

**Author:** ![CreativeUsername](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/creativeusername/32/9601_2.png) [@CreativeUsername](https://forum.makecode.com/u/CreativeUsername)\
**Post date:** [March 27, 2023, 11:24pm UTC](https://forum.makecode.com/t/does-anyone-know-how-to-decompress-a-string/18372/12 "2023-03-27T23:24:54Z")

</div>

That’s the amount of tiles before the the next different tile
