Himo Posted January 5, 2005 Posted January 5, 2005 (edited) I was bored and I made minesweeper in C#. I didn't see any games forum like on VBtalk so I thought, let's post it here. Maybe someone thinks it useful, although it isn't very high tech.minesweeper.zip Edited January 5, 2005 by PlausiblyDamp Quote For questions about VS .net extensibility, please fire at me! :) For readability, please use the [ CS][/CS ] tags
mskeel Posted January 5, 2005 Posted January 5, 2005 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 couldn't 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 doesn't 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. Quote
Himo Posted January 5, 2005 Author Posted January 5, 2005 (edited) 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 didn't support to have an X larger then the Y.(i.e. 10x5, 8x3), so I fixed it. I'll 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?WithOutExeminesweeper.zip Edited January 5, 2005 by Himo Quote For questions about VS .net extensibility, please fire at me! :) For readability, please use the [ CS][/CS ] tags
coldfusion244 Posted January 5, 2005 Posted January 5, 2005 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 :) Quote -Sean
Himo Posted January 6, 2005 Author Posted January 6, 2005 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 didn't find: - I didn't experience lockups, maybe it's fixed now, since it's only loops the tiles' buttonclick event. What I didn't include: - Moving the game mechanic to another class. It's a small game, so not really necessary. - The placing of the bombs after the first click There's on average a 10% chance that this will happen. Well, since your weren't playing that long, you can start over easily without frustration. (Just too lazy :P ) That'll be it. Note: I modded the attachment now, so that it doesn't include any directories anymore. For your comfort PlausibleDamp ;)minesweeper.zip Quote For questions about VS .net extensibility, please fire at me! :) For readability, please use the [ CS][/CS ] tags
Himo Posted January 10, 2005 Author Posted January 10, 2005 Well, I'll assume everyone is happy about this one :D Quote For questions about VS .net extensibility, please fire at me! :) For readability, please use the [ CS][/CS ] tags
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.