Inspiration

I used to be addicted to minesweeper a couple of years ago and I thought since I finally had the skills to code it, it would be really fun to do so. I recently learned javascript so I also thought this would be the perfect test to see what I can do.

What it does

It's a logic game where you try to find where all the bombs are. If a square isn't occupied by a bomb, it will tell you how many bombs are within is 3x3 grid, but if you click a bomb, you lose.

How we built it

I built it in replit, using javascript, html and css.

Challenges we ran into

I knew the basics of html and css, going into this but never really used them for a purpose. This led me to run into lots of small errors, and testing things out. I spent almost 3 hours trying to fix an image position that took one line of css to fix.

Accomplishments that we're proud of

I'm proud that I got this done. There was more I wanted to do with this, but with all the problems I ran into, I am very satisfied having being able to complete this at all.

What we learned

I learned a lot about html and css and changing html and css code using javascript. I feel like if I tried doing this project again, the html and css would take me half as long, as I ran into many careless and easily fixed errors.

What's next for Minesweeper

My original plan was to make an ai to solve the puzzle, or maybe an "advice" button so when you get stuck, it points to a place thats guaranteed to have or not have a mine.

Built With

Share this project:

Updates