ZFGC

Projects => Other Projects => Topic started by: mit on April 01, 2006, 07:16:24 pm

Title: [Completed] Minesweeper
Post by: mit on April 01, 2006, 07:16:24 pm
I made my own version of Minesweeper in PHP! Now you can play minesweeper in the comfort of your own browser and with less features than the Windows one! Ontop of that, my algorithm for the cascading effect is unbelieveably memory consuming for the server, and may or may not run out of memory. Wanna play?

(http://www.kousougames.co.uk/Spritezors/thumb/features/t_minesweeper.jpg)
http://www.kousougames.co.uk/Minesweeper (http://www.kousougames.co.uk/Minesweeper)

If I ever have the effort, I may make an online highscore thingy so that this actually has an advantage over the windows one. But for now, it really doesn't.
Title: Re: Minesweeper
Post by: bran371 on April 02, 2006, 12:20:49 am
Pretty neat. Cool job!
Title: Re: Minesweeper
Post by: Benito on April 08, 2006, 07:14:06 pm
Cool, maybe you should limit the max size :P that might help with how much memory it uses?
Title: Re: Minesweeper
Post by: therabidwombat on April 08, 2006, 07:22:42 pm
I don't get it.

I clicked on the squares, and nothing happened. I right clicked on them...and nothing happened. How does this work?
Title: Re: Minesweeper
Post by: mit on April 09, 2006, 06:38:51 am
Hmm, should work. What browser do you have? The buttons are only form thingies.
Title: Re: Minesweeper
Post by: therabidwombat on April 09, 2006, 06:57:54 am
I'm using IE 6.0.
Title: Re: Minesweeper
Post by: mit on April 09, 2006, 11:25:31 am
Hmm... interesting... what size board did you set it to? Test it at 10, with 10 mines, and if that doesn't work I don't know. My algorythm sucks, and so very large boards crash it...
Title: Re: Minesweeper
Post by: therabidwombat on April 09, 2006, 07:19:38 pm
Okay, it works now, it just takes like 2 seconds to load after each click XD
Title: Re: Minesweeper
Post by: mit on June 19, 2006, 10:03:40 pm
Sorry to bump, but I wanted everyone to know that now I've added that highscore table I promised: http://www.kousougames.co.uk/Minesweeper/?act=highscore
See if you can beat me  ;D
Title: Re: Minesweeper
Post by: Ben on June 20, 2006, 02:06:02 pm
You should write it in JS, cause then your server won't crash and you'll learn JS, lol. That's what I did >_>.
Title: Re: Minesweeper
Post by: mit on June 20, 2006, 04:35:42 pm
The only reason this crashes is because my method of clearing many blank squares is terrible. In the windows one, it adds each ajacent blank square into a queue, and then goes through each one doing the same thing again. Mine has a funciton that sets the squares around it to visible if they're empty and calls itself on them if they have no value (the value of the number of close mines, precalucalted at the start). This method is very lazy and slow, causing the sever not to crash, but to exceed the amount of memory allowed for this script to use. You can change this limit, but I'm not going to.

Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved