Against The Wind

www.adila.com.my

Java Mini Project - Revised I

September4

applet is making me crazeh!
aanyway, it works offline la haha
i played around with my previous codes that were used for my mini project (my crappy codes yg sgt tak teratur! it can be simplified more! urghh!!)
*
Description: This is an applet that allows the user to start the game through a webpage. On initialisation, the application would randomly choose where the bomb is located. If the user clicks on a square that has a bomb underneath, the game is over. If there is not, they continue clicking until they find the bomb or all squares (excluding the bomb) have been clicked on. The game terminates when only one square is left (and it is the bomb square) or the last square clicked was the bomb.
*
as before.. this msg would pop up

*
OK and you’ll get this…

*
get the BOMB! haha
and you’ll get this!
A SAD FACE! and a msg asking whether you’d like to play again

*
LOL
the thing is… use repaint() xD
that’s the trick that i’ve been trying to figure out since earlier this afternoon hehe
anyway, it’s still not good enough xD
(there’s 1 error.. or something that i did xD haha cuz after a few seconds the sad face appear, it will disappear even though i don’t think i set it to do that LOL)
*
p/s : download miniminesweeper la if you want to try it out ^^
i do not include the source code and user manual
but pretty much you just need to know this…
To play the game, open the Mini Minesweeper folder and click MiniMinesweeper.htm