Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Another Minesweeper
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Ktomislav




PostPosted: Sat Sep 20, 2008 8:48 am   Post subject: Another Minesweeper

The file names are not in English so don't be angry. Laughing
And highscores are not finished and probably will never be.
Sponsor
Sponsor
Sponsor
sponsor
andrew.




PostPosted: Sat Sep 20, 2008 11:09 am   Post subject: RE:Another Minesweeper

I'm getting an error. It says that the picture was not created. Did you accidentally rename an image?
Ktomislav




PostPosted: Sat Sep 20, 2008 12:22 pm   Post subject: Re: Another Minesweeper

Quote:
I'm getting an error. It says that the picture was not created. Did you accidentally rename an image?


When did you get it? It works fine for me.
SNIPERDUDE




PostPosted: Sat Sep 20, 2008 2:12 pm   Post subject: RE:Another Minesweeper

Worked fine for me.

To me it seemed like alot of the images could have been coded in.
An example would be either the buttons, or even the number tiles. Anything simplistic really.


Great job though, keep up the good work.
Smile
Zren




PostPosted: Sat Sep 20, 2008 7:48 pm   Post subject: Re: Another Minesweeper

Not bad, I'd look into recursion in order to make those clicks when your not hitting near a mine to 'see' until it's hit a warning tile. Simple Number's could be drawn in an algorithm much faster than in separate pictures. Not that it's against the rules or anything. You can draw simple text with:

font := Font.New("arial:16:bold")
Font.Draw("1",x-bottom-left,y-bottom-left,font,color)

or

Just look at this Tutorial to explain it all: http://compsci.ca/v3/viewtopic.php?t=7629
Ktomislav




PostPosted: Sun Sep 21, 2008 3:57 am   Post subject: Re: Another Minesweeper

Quote:
Not bad, I'd look into recursion in order to make those clicks when your not hitting near a mine to 'see' until it's hit a warning tile.


I know but i had some problems with that recursion. I don't remember what was it but I'll try to fix it.

EDIT:

Fixed.
The_Bean




PostPosted: Sun Sep 21, 2008 8:45 am   Post subject: Re: Another Minesweeper

Works really well with the recursion.
Although you should use 8 point instead of 4 point because its still missing the corners

and there doesn't seem to be any mines in the top 5 rows.
Ktomislav




PostPosted: Sun Sep 21, 2008 11:49 am   Post subject: Re: Another Minesweeper

The_Bean @ 21.9.2008, 14:45 wrote:
Works really well with the recursion.
Although you should use 8 point instead of 4 point because its still missing the corners


Yes, I noticed that and fixed it.

mine2.exe is the newest.
Sponsor
Sponsor
Sponsor
sponsor
Warchamp7




PostPosted: Mon Sep 22, 2008 7:57 am   Post subject: RE:Another Minesweeper

Pretty nice

One point though, you spelled -beginner- wrong in the options Razz

Also, you should have it reveal all the mines when you lose
SNIPERDUDE




PostPosted: Mon Sep 22, 2008 8:47 am   Post subject: RE:Another Minesweeper

Yea, that would be cool to see.
Ktomislav




PostPosted: Mon Sep 22, 2008 9:18 am   Post subject: Re: RE:Another Minesweeper

Warchamp7 @ 22.9.2008, 13:57 wrote:

One point though, you spelled -beginner- wrong in the options Razz


Oops. Mr. Green


Quote:

Also, you should have it reveal all the mines when you lose


Maybe I'll do that, but i wrote this game a long time ago and the code is unreadable so it's hard to make something new.

EDIT:
-beginner is corrected
-revealing fields
-mines in top 5 fields



Minesweeper_last.zip
 Description:

Download
 Filename:  Minesweeper_last.zip
 Filesize:  383.92 KB
 Downloaded:  244 Time(s)

Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 11 Posts ]
Jump to:   


Style:  
Search: