Sunday, June 18, 2006


u know minesweaper??
who doesn't know minesweaper :D... I like that game.. anyway,during the college days I decided to make my own minesweaper -with big cells cause my eyes hurt me from those tiny one :D- (actually it wasnt my idea, I just heard some collegeues talking about that w tala3o el mawdoo3 fe dema3'y).. so I started in it & later, one became so busy & I left it...
During exams, I just thought about completing it & wish to leave studying to complete it... so this was the first thing to do after taking the vacation.. (I completed it thursday morning ;) )
I finished it, but actually NO UI interface at all... that's why I am not putting a screen shot here ;)

well, its so simple to be implemented... maybe the main problem that you will face is that there is no 'right click' event handler in c#.. so u will have to make one yourself ;)
(I dont know why didnt Microsoft make an event for the right mouse click.. even in .net 2005 ^o) .. )

About handling the mines.. a good ACMer will do that (cause there is a problem called minesweaper in the problemset in the OJ ;) )...

Maybe later I will send a screen shot here, but I dont think I will waste my time for making a good UI for this.. :huh..

c u in next posts isAllah.. There will be a looot of posts coming isAllah..
Keep in touch :)


Asmaa Magdi said...

That's gr8 :D
I don't wanna the interface I wanna play with it :D.
bass gr8 work (Y)
fakarteeny be le3ba kont 3ayza a3melha bardo :D. I may start in it soon isAllah :D

Haytham Alaa said...

Alsalam alikom wa ra7mat allah wa barakatoh,

Just a note about the right-click issue, the MouseClick event is called for any mouse click (Right, Middle, Left, .. etc) and the MouseEventArgs that is sent to ur handler have a property named Button which refers to which button is pressed

if (e.Button == MouseButtons.Right)
// Do any thing..

Maybe this is what u meant by making ur own!

Anyway, good work.. Hope some one would like to waste his time in the UI so that we can see it one day ;)

Alsalam alikom wa ra7mat allah wa barakatoh

Roaa said...

Al Salamo 3alikom..

thanks for the comment.. yes.. this is exactly what I did but I complicated it more (A)..
About the UI.. mm.. one is so busy nowadays..bas maybe in spare time wala 7aga isAllah...
I didnt mean that :huh y3nee (deeh bas 3alashan Asmaa bet7ebaha ;) )

Asmaa Magdi said...

Thnx :D :huh