Computer Science Canada

Another Minesweeper

Author:  Ktomislav [ 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.

Author:  andrew. [ 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?

Author:  Ktomislav [ 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.

Author:  SNIPERDUDE [ 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

Author:  Zren [ 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

Author:  Ktomislav [ 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.

Author:  The_Bean [ 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.

Author:  Ktomislav [ 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.

Author:  Warchamp7 [ 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

Author:  SNIPERDUDE [ Mon Sep 22, 2008 8:47 am ]
Post subject:  RE:Another Minesweeper

Yea, that would be cool to see.

Author:  Ktomislav [ 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


: