I Made Minesweeper with just Redstone!
ฝัง
- เผยแพร่เมื่อ 3 มิ.ย. 2024
- Patreon: / mattbatwings
Discord: / discord
My socials: linktr.ee/mattbatwings
My texture pack: modrinth.com/resourcepack/mat...
World Download: (JAVA 1.18.2) www.planetminecraft.com/proje...
How to use the Python Script: docs.google.com/document/d/1_...
Digital Logic Animations were created with the help of a tool made by @SebastianLague github.com/SebLague/Digital-L...
-------------------------
Want to get more involved in the logical redstone community?
Learn Logical Redstone! • Logical Redstone Reloaded
Open Redstone Engineers (ORE): openredstone.org/
0:00 Introduction
0:26 How to Play
1:36 Initial Thoughts
2:31 Display Module
5:00 User Interface
5:41 Flag Signal and Open Signal
7:55 Mine Counting
11:07 Zero Spreading
13:03 Win/Lose Detection
15:27 Mine Generation?
16:10 Showcase
17:19 Subscribe!
Music (in order):
Helynt - Steam Gardens • Mario & Chill ~ Steam ...
Harris Heller - Path Less Traveled • Path Less Traveled
Harris Heller - Guilty Spark • Guilty Spark
LAKEY INSPIRED - Chill Day • LAKEY INSPIRED - Chill...
Harris Heller - 90's • 90's
Infraction - Serotonin • Vlog Lo-Fi Chill by In...
Alexander Nakarada - Favorite • Favorite - Alexander N...
Gucci Louis - Rap Beat 2 • Gucci Louis - Rap Beat 2
Harris Heller - Plethora • Plethora
Harris Heller - Tokyo Rain • Tokyo Rain
Home - We're Finally Landing • Home - We're Finally L...
Harris Heller - Streamline • Streamline
Sascha Ende - Finger ins Ohr • Sascha Ende Finger ins...
Harris Heller - Golden Age • Golden Age
Helynt - Continue • Continue
Oxart - Living Mice Synthwave Remix • C418 - Living Mice (Sy... - เกม
Hi guys, thanks for watching! A couple FAQs:
“50/50s were allowed in the original game. Doesn’t that mean 8s are necessary?”
Yes, if you’re talking about the classic version of minesweeper. At the time, I genuinely didn’t know the original game allowed 50/50s. My entire career of playing minesweeper consisted of playing the google version a few times, of which I never ran into a 50/50, so I wrongly assumed the random generation will just avoid it. This is also why I gave up on random generation. Probably should've played a few more games / done more research lol
“Can’t you cheese the win detection logic by flagging every cell?”
Nope! The logic is based on the open signal and the mine signal, not the flag signal. The “Face” column is a bit misleading, whoops!
You are the Goat 🦇🟩
Is the designed to make you not lose if the one first open would’ve otherwise been a mine?
@@deleted-something the generation comes from an actual minesweeper website, which removes the possibilities of the first cell being a mine
I wonder if you could you a similar function as zero spreading to also allow for chording
Btw you basically made an xor gate for the closed sell thing 7:15
For anyone wondering, the logic gate animations he used are from Sebastian Lague's Digital Logic Sim, it's a great watch. I definitely recommend.
edit: correcting grammar
NOOO you stole my comment
I was so confused when he started using them and thought I was getting them switched
I was about to say! Sebastian lague ftw
Yeah would've been nice to see some credit to him in the video
@@Kaenguruu did you know you repeated the same comment 11 times?
No way!! I’ve been obsessed with Minesweeper recently and got my mom hooked on it too! Did you read my mind or something???? I can’t wait to see this!!
Same😅
people always "read my mind"
how?
SAME
not obsessed but have been enjoying it
I knew you were gonna do some 3-dimensional redstone to fit the circuits in the cells, but MAN this staircase signal strength arrangement is sweet. congrats
Prediction: the logic will be simple, the vertical number display will not, unless the display is horizontal in which case easy build.
Yeah pretty much, the majority of the build space is taken by the display, the actual game is quite small and simple
the vertical number display will not what ?
@@Prypak read it again bro. He means The logic WILL be simple, the number display WILL NOT (be simple)
@@pavelmatusu4457 you should be using square brackets not parentheses
@@Jiglias You're right , i just didn't care enough to find them on my android keyboard.
I used to be so confused about how the first computers were made because don't you need a computer to code a computer but your videos really helped me understand how that was possible. Your videos are so interesting and entertaining, thanks for making them.
The first computers were actually incredibly big! Usually taking up most of a room in fact! They'd compute complex mathematical operations, and even basic simulations. They were programmed and given inputs via punch cards, which would then be processed, and depending on the operation, would either install whatever simple program you punched out, or would display an output via lamps, printer, or electric typewriter. The IBM 350 RAMAC is a great example of such a system. Capable of storing 62,500 punched cards worth of data (roughly 3.75Mb) which was incredibly impressive in 1956!
^ So big that literal bugs could easily make their way inside and then mess up the system, which is where the programming term "bugs" comes from in the first place
This man is literally making the craziest contraptions ever built in mc, and somehow he just keeps on giving. Man you're a legened
Amazing. Saw your post on Reddit and thought, “this looks like something Matt would do” then I checked the user and sure enough! I was kinda hoping hitting the mine would blow the whole game up in the showcase, we gotta raise the stakes 😂. It would also be nice to see a mine counter, as well as a question mark marker for the cells you’re not too sure about, but that last one isn’t too important.
Additionally I would be very interested in a series that serves as an in depth guide to each of these machines starting from more basic games and gradually becoming more difficult. I think I’d learn a lot more that way!
Love the content! You never let me down. Can’t wait to see what you come up with next!
you should have kept 8, its a really small chance but sometimes you could get an 8 on the first cell you click
but if you do that, you have to guess what cell outside of the 3x3 surrounding it doesn't have a mine, and he wanted to avoid boards where you need to make a 50/50 guess
also he should make a flag counter or some from of flag spam detector. you can just win by flag all the blocks
@@Waluigiredstone you're absolutely right. Furthermore you don't have to flag all the mines in order to win, they just need to remain closed, so the correct win condition is not "all the cells are either open and not mines, or flagged", but "all non-mine cells are open"
@@Waluigiredstone check the pinned FAQ!
No you can't get an 8 on the first click. Infact you can't get any number on first click.
In the game first click always results in a zero. Otherwise you would need to guess for the next cell
I coded one on my TI-82 calculator almost 20 years ago, i'm amazed to see a Redstone version of this game ! The zero spreading is really elegant, well done !
I was expecting the board to blow up when you found a mine in the showcase hahaha. Awesome stuff! This was a really fun video to follow along, and some super neat tricks I wouldn't have thought of :)
This Guy is the Chuck Norris of Redstone
Nice video!
This is such a fun project too, I remember building my own in the past.
It's perfect for not being too difficult, yet still being fun and satisfying to play, even if it's quite slow due to redstone's speed limitations.
I swear next this guy is gonna make a supercomputer in minecraft
No he’s going to make google and a working WiFi router and then he’s going to add a supper computer so he can make his PC but better in Minecraft
@NuclearCentipede yeah what this guy said
A supper computer sounds delicious!
@@NuclearCentipede fr
It's always a pleasure every time you explain how the game works and the components associated with it.
I love that you used the logic simulator by Sebastian Lague in the win/lose section (13:03)
Same Sebastian is how I learned digital logic, funny enough I watched the tru state logic video years before I watched the full series
You’re the most impressive redstoner by far. Both because of the absurdity of your builds and the simplicity you explain things with
I had to code Minesweeper as a final project in my programming class. Detecting adjacent mines really was as simple as a for loop.
As I was watching I was thinking about how it would be possible to do each step in redstone, and each time you revealed a step my mind was blown and I audibly said "that's so cool" or "that's so smart." I kinda wanna try it out myself now even if I know I won't be able to do it
This is perfect, I appreciate your work, keep doing more of these!
Thats all i wanted somone to do
Ur first
You forgot the most crucial part!!! You should've made a map where the lose condition activates tnt that's spread all over the circuit
That's like... The most fun thing to watch in minesweeper
I'm amazed about how well it came out! Also thank so much for putting the music you used in the description.
Don’t think we didn’t notice you used Sebastian Lague’s Digital Logic Sim for those truth table graphics
I’d recognize those colored boxes and red wires anywhere
Same, he is where I learned digital logic
The way you explained this made it look easy. Another great video!
I joined back in the 12k days. Fascinating to see how far you’ve come
I've gotta say, the problem solving and creativity on this one has been very impressive. Keep up the great work dude.
Really impressive and intuitive stuff, man! Keep up the great work! :D
You should share this video with Xumavoid on Hermitcraft, he's been cracking away at trying to build a more elaborate version of minesweeper (The mine sweeper game despenses TNT when you click a mine).
Love the content. You explain things very thoroughly and I enjoy watching you every time you upload!
14:42 this logic seems to imply that you could win via flagging everything
which is what i assume actually happens
unless u have it ALSO lose if u try to flag a nonmine
Lol I recognise that logic gate visualiser at 13:53. It's the one made by Sebastian Lague, right? It's so cool, I love that it exists!
Me too
Yeah I love Sebastian it’s how I learned digital logic
This is possible one of the best illustrated videos Matt has made
Awesome vid matt
12:50 - IKR! In the end it's like you do your stuff and tell others if you've done it so they can see if they have to do as well.
it's the event pattern, very efficient and one thing to use a lot in game dev.
It is rare to see such a great and detailed explanation with this kind of builds… thanks!
this was amazing
i hope you make something revolutional to the Redstone community one day
I was honestly expecting a randomized board, and I thought you were going to do something similar to Sethbling's roulette table, just with multiple of them. Still very impressive, loved the video, always a good day when you upload!
Cool that you used Sebastian Lague's logic sim!
I love digital logic sim I followed the series as I made it in the program last year
Glad you went with guess-less minesweeper. Congrats on cool video 💜
Nice! I remember Sethbling's minesweeper, it's interesting how far things have come.
This is really cool. Theoretically, you could add a difficulty level where you just multiple the size of the table, and use the old cells as new individual redstone lamps.
Another brilliant work Matt! Have you tried making Dots and boxes? It doesn't have as much logic as this, but it's another project you could add to your to-do.
You make it look so easy lol. Great job !
Really nice, its amazing what just redstone can do with a bit of clever thinking.
however i think i've seen a colored redstone lamps mod somewhere, maybe that could be used to do something cool
You never cease to amaze. Great work!
woah i was just thinking of trying to make something like this! this is insane, holy shit. kudos to you!
Absolutely amzing work
This is so satisfying, well done
I think i'm a bit *too* early...
I am way too early (7 hours early)
Yeah same
It's starting
Same
Not me
my guy has the power to be a minecraft supervillain
this is amazing. I would like to play this as minesweeper is amazing!
Bro, that is insane. No words. You are literrary crazy.
The fact this guy can code anything and then translate it to redstone is insane
Im just getting inn to coding and this is awesome! Always love your videos🎉
8:57 Aha! I was spot on, I figured you were just subtracting one for each of the nearby mines then subtracting that result from eight to get the number of mines! Of course, if I continue watching only to find out that that's not actually what you did...
Always crazy good videos!
matt i dare you to use the "more red" mod, aswell as one of the many redstone circuit/gate mods and make something that would usually be massive with vanilla redstone
This is incredible. I made minesweeper in Javascript afew years ago and it took me like 2 months... no way I would have the dedication to make it in redstone
I don't know what I'm more impressed by: the fact that you were able to code all this in redstone, or that you even knew how to beat minesweeper in the first place
This guy needs a trophy for all his redstone builds
it's insane to me how people are able to adapt to a new universe with new laws of physics (ie redstone wires having a strength meter built-in to them vs real life wiring would take such complicated systems to implement the same thing that it wouldn't be worth it) and come up with such creative solutions to take advantage of them! This is on the same level as early pinball machines to me... just an amazing feat of electromechanic engineering and code done within a different universe.
You went a lot further than I would've thought already, but my favorite convenience feature is missing: in most versions, clicking an unlocked tile will unlock all the neighbors that aren't flagged. I bring it up because I actually think it's pretty easy to implement, at least logic wise: send the same signal that zero-spreading does to its neighbors, block that signal when it's flagged. The hardest part would probably be finding space for that wiring.
i love how you make computer science concepts approachable for people
The showcase was Emotional 😭
You should have added a third button hooked up to the zero spreading circuit so you could do a common trick to use the ‘all mines around are safe’ trick
bro you are so good
hats off
You are my new favourite Minecraft redstoner. I feel like you've picked up the torch from the likes of Sethbling and FVDisco. Magnificent job, I am looking forward to your next milestone project!
This I agree with.
Finally bro...took ya long enough
yea, it will prob be better than urs (joke i suck at redstone)
As awesome as this build is, far more impressive than I could ever do, I think rigging the game to explode when you lose would've been the cherry on top.
There are absolutely situtations where an 8 is findable without guessing. Zero mine count comes to mind, or a fully accounted for mine count. Its also pretty easy to display mine count for something like this, it doesnt even need to constantly update.
50/50's occur in most minesweeper games; unless you look for a version to filter those out. With vanilla the statistical best you can do is win around 30% of games; I'm steady at just above 21% with a min time of 120s for expert (over 10,700 games).
I'd want to use a counter to set the number of mines, an x & a y randomizer to select the positions, and a return signal to try again if the attempted mine placement already had a mine. Remaining unflagged mines count is also a critical number to determine if certain areas are safe, especially on larger boards. A timer wouldn't be too hard to add either.
Glad to see the vid but also having a strong dejavu moment; almost like this was a re-upload but I know it's not.
If you use a hopper based T-Flip flop, you can guarentee a full reset by disabling the universal block and briefly inputting a specific side block. This forces the item to always be in a given position.
Recently my friend made an MS game in 1C (Russian accountants' programm language) and this was really hard to build. Respect for your work!
Good video.
The redstone is very complex, i’m happy to know the capabilities of redstone
Fun fact, wich goes hand in hand with board generation. In the official game the board actually isn't generated until the first click. This is because your first click will ALWAYS be a 0/empty space.
Maybe you could also do the convenience trick where if you open an already open cell it can open all the neighbors that aren't flagged. this could be done in a similar fashion to the 0 propagation.
Such a fun video again ❤
One time I was playing Minesweeper in normal difficulty. When I just clicked a random cell all the safe cells opened due to zero spreading and I instantly won!!!
i like that every huge redstone game building looks like real micro scheme
This is a great idea.
The "open redstone engineers" Minecraft server, or ORE, has a LOT of projects like this. Something to check out if you're interested.
Massive respect to this TH-camr.
This is cool I made something similar to this but not in minecraft. Keep up the good work I like this stuff
10:53 "after just 15 hours of work" More power to ya!
Ok I can’t wait to see this this is exiting even though I never played this game it looks fun Evan for minecraft
THIS WAS AMAZING
Honestly I would have just left the zero spreading up the the player lol. However, your implementation of it is beautiful.
Also, I once made a very different kind of redstone minesweeper that was much simpler but unfortunately a one time use device if you lost. Each cell was just one block and had some generic block like stone on top. You could "click" a cell by breaking the block or "flag" it by placing a carpet over it. Under the top layer would either be an iron block for a 0, blue concrete for a one, green concrete for a 2, etc, etc, so it was all color coded. If you clicked/broke a block with a mine under it, there would instead be an observer with a tnt block underneath which would then detonate. Each game had to be manually constructed and it generally killed you and also destroyed the whole board if you lost.
Extremely impressive and I love the visualisation of OR, XOR and AND gates.
Is there a way to add a measure that prevents you from clicking a mine on the first click?
Holy Jesus, amazing job :)
Funny how this one was one of the more simple ones despite looking like it should've been one of the most complicated ones
The fact that you didn't blow it up with TNTs in the end was highly unsatisfying
(/j, this is impressive!)
Imagine living in a cube shaped universe and encountering a giant floating computer one day. Really brings to mind some trippy thoughts.
I like the face for win/lose as its like windows minesweeper but would've been cool to have an X or O to show up on the entire board if you lost or won (although that would be more stuff to code)
Next video: "I made a computer where you can program your own games easily!"
For randomising the mines if you were building a 9x9 you can just use 2 droppers and an item sorter and get a signal strength from there and set them to the mine selection area and each item in the droppers will say like “6,3” to map along 6 and up 3 like cords in math
bro just pulled out the Sebastian Lague logic gate simulator
noice man
Also noticed that
Amazing ! Love it !❤
Matt be using Sebastian's logic gate sim lol. Nice!
Sebastian lague?
yoooooooooooooooo seb lague??!!
Idea for how to increase the chance of a random minesweeper board being winnable: Make a noise map using a maze generator, and then have the maze walls be weights for a higher chance of a mine. This is increases the chance that zeroes will be adjacent to eachother and decreases the chance of dense rectangles of mines. Use multiple layers of noise to give the field a larger (general) structure.
That’s freaking awesome
I also made a minesweeper, but now I see that I could have done it much better. Nice project.