DEV Community

Add00
Add00

Posted on • Edited on

1 1

Planning Minesweeper

Greetings,

For the final project of this semester I wanted to continue contributing to the game engine I had been making previous contributions to. So I made an issue asking the main developer if I could add a tween animation system. It turned out the developer already had one and I had some how missed it. So, I turned to my back up plan and asked if the developer was interested in rigid body physics. Unfortunately, it turned out that it was not a feature inline for the maintainers vision of the engine.

However, he did suggest that I make an example game. This was a very good suggestion so I decided to make Minesweeper a game about finding all the cells without mines in them. For this project I opted for an object oriented approach. I plan to have a Tile class to represent a cell which would store the number of adjacent mines, and if itself is a mine. As well as a Board class which would store the 2d array storing the tiles as well as a method to draw it. Finally, there would be an Interaction class to handle user mouse events as they click on the cells in the game.

While I know how to play Minesweeper, programming it is a different challenge and I look forwards to it!

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)