# I need some help with minesweeper

**URL:** https://forum.makecode.com/t/i-need-some-help-with-minesweeper/17918
**Category:** Help
**Created:** [February 10, 2023, 5:36pm UTC](https://forum.makecode.com/t/i-need-some-help-with-minesweeper/17918 "2023-02-10T17:36:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MrNoahMango](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@MrNoahMango](https://forum.makecode.com/u/MrNoahMango)
#### Post date: [February 10, 2023, 5:36pm UTC](https://forum.makecode.com/t/i-need-some-help-with-minesweeper/17918/1 "2023-02-10T17:36:15Z")

</div>

i am making a version of minesweeper for makecode arcade, and i can’t figure out how to make the cursor reveal only one sprite.  
here is the current code:

> **[Minesweeper](https://arcade.makecode.com/35288-78510-54482-82946)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)
#### Post date: [February 13, 2023, 8:11pm UTC](https://forum.makecode.com/t/i-need-some-help-with-minesweeper/17918/2 "2023-02-13T20:11:24Z")

</div>

You could make a random tile map generator with different tiles and set certain sprites to certain tiles using the place mysprite on array of tiles \_\_\_. And make this a function, then get the Arcade-tile-until extension. after the function add an if block with on A button pressed then use the Cover all \_\_\_ tiles with \_\_\_ block. I hope this helps and makes sense. If not let me know using @SOCKMONSTER12 in your next message. 😉

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [October 16, 2023, 7:03pm UTC](https://forum.makecode.com/t/i-need-some-help-with-minesweeper/17918/3 "2023-10-16T19:03:40Z")

</div>

When I made Minesweeper I only used tiles and one sprite for the control. If you want you can try to understand what the heck my code is doing [https://arcade.makecode.com/S68883-58169-27322-73125](https://arcade.makecode.com/S68883-58169-27322-73125)

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [October 16, 2023, 7:03pm UTC](https://forum.makecode.com/t/i-need-some-help-with-minesweeper/17918/4 "2023-10-16T19:03:46Z")

</div>

Or you could use “tile to center of my sprite” and then reveal the sprit at the center of that tile?
