# Tetris attempt, getting stuck

**URL:** <https://forum.makecode.com/t/tetris-attempt-getting-stuck/34664>\
**Category:** Arcade\
**Tags:** game\
**Created:** [March 17, 2025, 3:34am UTC](https://forum.makecode.com/t/tetris-attempt-getting-stuck/34664 "2025-03-17T03:34:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shenshan](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@shenshan](https://forum.makecode.com/u/shenshan)\
**Post date:** [March 17, 2025, 3:34am UTC](https://forum.makecode.com/t/tetris-attempt-getting-stuck/34664/1 "2025-03-17T03:34:16Z")

</div>

[https://arcade.makecode.com/S79511-60475-16395-95717](https://arcade.makecode.com/S79511-60475-16395-95717)

I’m working on a tetris clone in makecode, and i’ve gotten pretty far along so far. There are a few unfinished things (score, can’t hold to move piece left/right yet, the hold for soft drop is very scuffed right now etc.) but I’m looking for help on my line clearing code, specifically the “lowerHangingRows” function.

It seems to work well when clearing 1 or 2 rows, but doesn’t work when clearing 3 or 4. If anyone smarter than me can make sense of my code, advice would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Licornie123](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@Licornie123](https://forum.makecode.com/u/Licornie123)\
**Post date:** [August 18, 2025, 10:11pm UTC](https://forum.makecode.com/t/tetris-attempt-getting-stuck/34664/2 "2025-08-18T22:11:51Z")

</div>

Hi, i changed the block “for rowchange from 0 to length of array empty rows -1” for “for rowchange from 0 to length of array empty rows +2” and it worked.

For the down button, I changed “on down button repeat” by “forever if is down button pressed”

I also did that for the left and right controls

Here is the code: [https://arcade.makecode.com/S38316-56490-24552-06360](https://arcade.makecode.com/S38316-56490-24552-06360).

---

<div class="post-metadata">

**Author:** ![shenshan](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@shenshan](https://forum.makecode.com/u/shenshan)\
**Post date:** [August 19, 2025, 6:13pm UTC](https://forum.makecode.com/t/tetris-attempt-getting-stuck/34664/3 "2025-08-19T18:13:11Z")

</div>

Thank you for taking the time to look through this! I’ve learnt a lot more about makecode since working on this, it might be time to revisit it! Thanks again 🖤
