# Mini-Game: π£ MineSweeper

Hey blaze comunity, I want to share with you this small experiment. is a game in wich you can play different levels and each 10 levels the difficulty increases.

how to play?
select the square where you want to stand.
insert the snippet, and see if you survive, or die
copy the inserted code to continue playing
use the snippet again and paste the code on the top left corner.

{note: preview=no; insert=no}
{if: loadcode = "no save"} {else}
{splitcodeIniB=search(levelcode,"Γ±B")}{level=substring(levelcode, splitcodeIniB+2, 1)}
{endif}

--Mines
{mine1=0}{mine2=0}{mine3=0}{mine4=0}{mine5=0}{mine6=0}
{mine1={random-number: min=1; max=9; rounded=yes}}{if: level>1} {mine2={random-number: min=1; max=9; rounded=yes}} {endif}{if: level>2} {mine3={random-number: min=1; max=9; rounded=yes}}{endif} {if: level>3} {mine4={random-number: min=1; max=9; rounded=yes}}{endif} {if: level>4} {mine5={random-number: min=1; max=9; rounded=yes}}{endif} {if: level>5} {mine6={random-number: min=1; max=9; rounded=yes}}{endif}
{if: mine1=1 or mine2=1 or mine3=1 or mine4=1 or mine5=1 or mine6=1}{a=""}{endif}
{if: mine1=2 or mine2=2 or mine3=2 or mine4=2 or mine5=2 or mine6=2}{b=""}{endif}
{if: mine1=3 or mine2=3 or mine3=3 or mine4=3 or mine5=3 or mine6=3}{c=""}{endif}
{if: mine1=4 or mine2=4 or mine3=4 or mine4=4 or mine5=4 or mine6=4}{d=""}{endif}
{if: mine1=5 or mine2=5 or mine3=5 or mine4=5 or mine5=5 or mine6=5}{e=""}{endif}
{if: mine1=6 or mine2=6 or mine3=6 or mine4=6 or mine5=6 or mine6=6}{f=""}{endif}
{if: mine1=7 or mine2=7 or mine3=7 or mine4=7 or mine5=7 or mine6=7}{g=""}{endif}
{if: mine1=8 or mine2=8 or mine3=8 or mine4=8 or mine5=8 or mine6=8}{h=""}{endif}
{if: mine1=8 or mine2=8 or mine3=8 or mine4=9 or mine5=9 or mine6=9}{i=""}{endif}

{endnote}
{note: preview=yes; insert=no}

Select a square to move, survive and avoid mines .
I will walk to {formmenu: default=:red_square:; ; ; ; ; ; ; ; ; name=selection} square!

{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}
{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}
{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}

{if: selection="" and a=""}{lose=1}{a=""}{endif}{if: selection="" and b=""}{lose=1}{b=""}{endif}{if: selection="" and c=""}{lose=1}{c=""}{endif}{if: selection="" and d=""}{lose=1}{d=""}{endif}{if: selection="" and e=""}{lose=1}{e=""}{endif}{if: selection="" and f=""}{lose=1}{f=""}{endif}{if: selection="" and g=""}{lose=1}{g=""}{endif}{if: selection="" and h=""}{lose=1}{h=""}{endif}{if: selection="" and i=""}{lose=1}{i=""}{endif}
{endnote}
{note: preview=no; insert=yes}

{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}
{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}
{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}{if: selection="" }{else}{endif}

you steeped on : {=selection} {wait: delay=+0.3s}.{wait: delay=+0.3s}.
{wait: delay=+0.3s}.
.
{wait: delay=+0.5s}{=a}{wait: delay=+0.7s}{=b}{wait: delay=+0.5s}{=c}.
{wait: delay=+0.7s}{=d}{wait: delay=+0.5s}{=e}{wait: delay=+0.3s}{=f}.
{wait: delay=+0.6s}{=g}{wait: delay=+0.4s}{=h}{wait: delay=+0.7s}{=i}.
.
{wait: delay=+1s}.

{if: lose=1}
GAME OVERβ:skull:

{else}

YOU SURVIVE! {random-text: , , , , , , , , }
SCORE: {=newscore}
{wait: delay=+0.3s}
{if: level<newlevel} New level unlock!: {wait: delay=+0.3s} +1β:bomb:{endif}
{fixedscore=substring(concat("000", newscore), -3, 3)}
{savehash=concat("Γ±A", fixedscore, "Γ±B", newlevel, "Γ±C", newroom)} {savecode=base64encode(savehash)}
Saved Code: {cursor}{=savecode}
{endif}
{endnote}

3 Likes

This is super super creative

Can you post the snippet here by clicking the gear icon and then pasting the snippet contents? That will allow people to copy the snippet more easily.

1 Like

thanks for the advice, updating with snippet!

Thanks for sharing this creative content. Please note that we're currently experiencing issues with previewing snippets in the community that are included with emojis. We're working hard to get that fixed as soon as possible.

Meanwhile, please keep up that amazing work!

1 Like