# I Remade Minesweeper in Makecode

**URL:** https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829
**Category:** Show & Tell
**Tags:** game
**Created:** [July 25, 2024, 5:39pm UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829 "2024-07-25T17:39:29Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![TrissyTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/trissythecoder/32/14169_2.png) [@TrissyTheCoder](https://forum.makecode.com/u/TrissyTheCoder)
#### Post date: [July 25, 2024, 5:39pm UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829/1 "2024-07-25T17:39:29Z")

</div>

yes I did so here. I tried my best yall

why did you click here??

[Minesweeper in Makecode](https://arcade.makecode.com/S09801-94778-63382-71157)

---

<div class="post-metadata">

### Author: ![NeoStreak](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neostreak/32/27498_2.png) [@NeoStreak](https://forum.makecode.com/u/NeoStreak)
#### Post date: [July 25, 2024, 5:59pm UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829/2 "2024-07-25T17:59:02Z")

</div>

I’ve never heard of Minesweeper, and it seems very confusing. What to do???

---

<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: [July 25, 2024, 6:11pm UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829/3 "2024-07-25T18:11:32Z")

</div>

This is _awesome_!!!

---

<div class="post-metadata">

### Author: ![Kikketer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikketer/32/16551_2.png) [@Kikketer](https://forum.makecode.com/u/Kikketer)
#### Post date: [July 25, 2024, 6:55pm UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829/4 "2024-07-25T18:55:45Z")

</div>

What colors mean what? I started narrowing it down “blue = one bomb” (diagonals count).  
Blue = 1?  
Yellow = 2?  
Grey = 0?

I challenge you to have it recursively check for neighbors that have 0 and auto-relveal those (if you haven’t already). “when click, check neighbors, reveal, for each revealed, check neighbors… recursive!”

This is one of the most mind-bending things about computers science and in my 20 years of software engineering, I can count on about 1 hand how many times I’ve had to do it.

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [July 25, 2024, 6:56pm UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829/5 "2024-07-25T18:56:12Z")

</div>

you should try using the grids extensions (in default list) for better selection of tiles i think that would help with making sure that you only trigger one tile at time (so less bugs) Also pls make the numbers easier to read lol i have no idea what they mean

---

<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: [July 25, 2024, 7:05pm UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829/6 "2024-07-25T19:05:26Z")

</div>

Woot! That took way longer than it should have. 😆 I kept making dumb errors.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/4/8422e70cb4ef58d505449fac6da5e2c4e4d993b0.png)

@Kikketer - Look closely; they’re numbers.

Blue = 1  
Green = 2  
Yellow = 3  
Orange = 4  
Purple = 5  
Red = 6  
Brown = 7  
Pink = 8

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [July 26, 2024, 5:05pm UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829/7 "2024-07-26T17:05:29Z")

</div>

Wow you’re a pro!

---

<div class="post-metadata">

### Author: ![awdrgyjil](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/awdrgyjil/32/20926_2.png) [@awdrgyjil](https://forum.makecode.com/u/awdrgyjil)
#### Post date: [July 26, 2024, 5:05pm UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829/8 "2024-07-26T17:05:49Z")

</div>

You really recreated minesweeper

---

<div class="post-metadata">

### Author: ![TrissyTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/trissythecoder/32/14169_2.png) [@TrissyTheCoder](https://forum.makecode.com/u/TrissyTheCoder)
#### Post date: [July 28, 2024, 4:07am UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829/9 "2024-07-28T04:07:05Z")

</div>

So in the original Minesweeper you uncover all the tiles while not uncovering the mines. The numbers tell you how many mines are neighboring it (orthogonally, diagonally). In this recreation you press A to uncover the mine and B to flag it or unflag it

---

<div class="post-metadata">

### Author: ![TrissyTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/trissythecoder/32/14169_2.png) [@TrissyTheCoder](https://forum.makecode.com/u/TrissyTheCoder)
#### Post date: [July 28, 2024, 4:07am UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829/10 "2024-07-28T04:07:10Z")

</div>

sry if the numbers didn’t look like numbers I changed the numbers so now they look better

---

<div class="post-metadata">

### Author: ![TrissyTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/trissythecoder/32/14169_2.png) [@TrissyTheCoder](https://forum.makecode.com/u/TrissyTheCoder)
#### Post date: [July 28, 2024, 4:07am UTC](https://forum.makecode.com/t/i-remade-minesweeper-in-makecode/29829/11 "2024-07-28T04:07:15Z")

</div>

if the numbers haven’t changed click here [https://arcade.makecode.com/S09801-94778-63382-71157](https://arcade.makecode.com/S09801-94778-63382-71157)
