Minesweeper of mine

Himo

Well-known member
Joined
Dec 22, 2004
Messages
61
Location
the Netherlands
I was bored and I made minesweeper in C#. I didnt see any games forum like on VBtalk so I thought, lets post it here. Maybe someone thinks it useful, although it isnt very high tech.
 

Attachments

Last edited by a moderator:
A good first cut.

A few suggestions --

- move the game logic out of the form class and into other classes, that way you can make changes to your user interface without affecting the business rules of your game

- Polish up the interface a little -- add some labels, do some fun stuff... How about a drop down box for different common variants of the game that are both challenging and fun? (I made a game with 3 bombs that was 10 x 10 and I couldnt find anything and one that was 200 x 200 and it took forever to load -- I gave up on it)

- Make it so that if you click on a box that doesnt have a mine or a number it dissapears, just like in the real game.

It looks really good though...a little more cranking and it could be really good.
 
First, thanks, I got bored and never did any game programming, so before moving to tetris, a friend(who has 92 seconds in Expert mode in windows minesweeper) suggested me to make this. I also bugtested with him and found two major errors:

- The numbers given in the boxes were blatantly wrong when not playing in a square mode(i.e. 8x8, 5x5)
- It didnt support to have an X larger then the Y.(i.e. 10x5, 8x3), so I fixed it.

Ill try to add the common game options. Here is the slightly changed version of it.

Edit: I do have one question though. My win condition is not what you say, ideal. Does anyone got a better idea that only bombs remain?
 

Attachments

Last edited by a moderator:
looks good! A few bugs though...

1. When the tile shows the immediate vicinity, you should probably remove it instead of making it have no caption.

2. In the middle of playing sometimes it fails to repond, even when I press on a bomb.

3. Possibly make it so that the bombs are randomly placed AFTER the first click. Just a suggestion.

Other than that, it looks nice :)
 
Okay, I took all your suggestions in consideration and did this:

- Added a timer(With pause function) to show your score
- The common variants in a dropdown
- If you now click on a tile, it get a "sunken" buttonstyle, so you know which you clicked.
- It now offers a play-again option instead of just shutting down.

What I didnt find:

- I didnt experience lockups, maybe its fixed now, since its only loops the tiles buttonclick event.

What I didnt include:

- Moving the game mechanic to another class.
Its a small game, so not really necessary.
- The placing of the bombs after the first click
Theres on average a 10% chance that this will happen. Well, since your werent playing that long, you can start over easily without frustration.
(Just too lazy :P )

Thatll be it.

Note: I modded the attachment now, so that it doesnt include any directories anymore. For your comfort PlausibleDamp ;)
 

Attachments

Back
Top