# Presenting: Minos

**URL:** <https://forum.makecode.com/t/presenting-minos/234>\
**Category:** Arcade\
**Tags:** game\
**Created:** [June 8, 2019, 3:40am UTC](https://forum.makecode.com/t/presenting-minos/234 "2019-06-08T03:40:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [June 8, 2019, 3:40am UTC](https://forum.makecode.com/t/presenting-minos/234/1 "2019-06-08T03:40:04Z")

</div>

OK … I couldn’t resist. I had to create another classic game. 🙂 This week, I present: Minos. It plays well on my BrainPad Arcade, too!

> **[minos](https://robo-technical-group.github.io/minos/)**
>
> Minos for MakeCode Arcade

Use the following URL to import the code into MakeCode Arcade: [https://github.com/robo-technical-group/minos](https://github.com/robo-technical-group/minos)

Minos is a shape-stacking game in the spirit of Tetris®. You can choose from a set of tetrominoes (four-block shapes), pentominoes (five-block shapes), or both. You also can choose your starting level, which affects how quickly blocks drop at the beginning of the game.

Shapes begin at the top of the well. Use the left, right, and down buttons to move the shapes within the well. Up will rotate the shape. Pressing the A button will activate auto-drop, which causes the shape to fall rapidly to the bottom of the well. Filled lines will clear, and shapes drop more quickly as you clear lines and level-up. The game continues until a shape cannot be dropped from the top of the well.

The game’s name, _Minos_, is a bit of a play on words. It’s derived from the word _polyominoes_, which is the generic term for shapes formed by combining squares. Minos - as in the first King Minos - also is a legendary figure from Greek mythology. King Minos was the first king of Crete, and was the son of Zeus and Europa.

Feel free to alter the constants, found both in `main.ts` and in `custom.ts`, to customize the game to your liking. In particular, you may want to change the `COLUMNS`, `ROWS`, and `BLOCK_SIZE` constants to alter the size and shape of the well.

Tetris® is a registered trademark of The Tetris Company.

Happy Friday! Have fun!

* * *

[See all of my MakeCode Arcade games and extensions here!](https://sites.google.com/site/akulcsarsite/makecode/makecode-arcade)

---

<div class="post-metadata">

**Author:** ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Post date:** [June 8, 2019, 12:07pm UTC](https://forum.makecode.com/t/presenting-minos/234/2 "2019-06-08T12:07:13Z")

</div>

Works with Adafruit Pygamer…if you are in beta editor and IMPORT the game. Not a good video but just to prove it. Thanks Alex K, for the game ! and Lady Ada for the Pygamer console: [https://youtu.be/8ROgjx-D0TI](https://youtu.be/8ROgjx-D0TI)

---

<div class="post-metadata">

**Author:** ![ladyada](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ladyada/32/167_2.png) [@ladyada](https://forum.makecode.com/u/ladyada)\
**Post date:** [June 17, 2019, 6:42am UTC](https://forum.makecode.com/t/presenting-minos/234/3 "2019-06-17T06:42:06Z")

</div>

awesome game!!

---

<div class="post-metadata">

**Author:** ![1529512345](https://avatars.discourse-cdn.com/v4/letter/1/53a042/32.png) [@1529512345](https://forum.makecode.com/u/1529512345)\
**Post date:** [July 27, 2019, 2:04am UTC](https://forum.makecode.com/t/presenting-minos/234/4 "2019-07-27T02:04:52Z")

</div>

um, improve it please because i keep getting _game over for **no reason** _. i swear i did not stack it to the top.

---

<div class="post-metadata">

**Author:** ![kjw](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kjw](https://forum.makecode.com/u/kjw)\
**Post date:** [August 5, 2019, 7:03pm UTC](https://forum.makecode.com/t/presenting-minos/234/5 "2019-08-05T19:03:00Z")

</div>

I had a quick play in the simulator, it’s a good rendition of the game.

Did you try to make this purely in block-based MakeCode first?

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [August 6, 2019, 7:48am UTC](https://forum.makecode.com/t/presenting-minos/234/6 "2019-08-06T07:48:18Z")

</div>

Thanks, @kjw! As I was creating my vision of the game, I realized that it was going to be simpler for me to write the game in JavaScript.

Tetris® clones, though, have been written in many different programming languages. A simpler version of the game probably could be written in Blocks, although it will be pretty challenging. Definitely possible, but you’ll probably have to sacrifice some of the flexibility that I was able to implement in the JavaScript version.

If you’re interested in a walkthrough on how to write a Tetris®-style game, you may find this helpful:

[Tetris in HTML5 for noobs](https://www.drewbuck.com/tetris-in-html5-for-noobs/)

It’s written for HTML5 and JavaScript, but the logic of the game works in any environment. I actually used Drew’s implementation as a starting point for the logic, and then I went off on my own way for quite a bit of the implementation. Drew does a great job of explaining how he created the game, and you slowly build the game as you go through his tutorial.

If anyone decides to go through Drew’s tutorial, feel free to ask questions here if you run into any difficulty when trying to implement something in Blocks.

---

<div class="post-metadata">

**Author:** ![LcAtonal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lcatonal/32/16800_2.png) [@LcAtonal](https://forum.makecode.com/u/LcAtonal)\
**Post date:** [July 29, 2020, 9:24am UTC](https://forum.makecode.com/t/presenting-minos/234/7 "2020-07-29T09:24:43Z")

</div>

It is totally like Tetris.  
Cool!!
