In case you are not familiar with minesweeper rules, here they are:
You are given a grid made up of grey squares. Within the grid, there are 8 hidden mines. You have the ability to "uncover" a square or mark it with a "flag". The goal of the game is to mark all the mines with "flags". If you uncover a mine, you lose. When you uncover a square that doesn't contain a mine, a number is revealed, which represents the amount of mines around the square. With a combination of luck, and use of the numbers you revealed, you can mark all the mines.
Now here are the rules for my remixed version of minesweeper:
You now play with a 2nd person, whom you compete with to find the most mines. In my version, uncovering a mine doesn't kill you. Instead it freezes you in place for a short time (and plays a DUN DUN DUN sound effect). If you try and mark a square that doesn't contain a mine you will be frozen for the same amount of time with the same sound effect to indicate your failure.
Here are the controls for P1 (The Grey Trilobyte in the Upper-Right corner):
The arrow keys control movement
The Space Bar uncovers the square you are currently above
The "M" key marks the square you are above.
If you successfully mark a mine a RED flag will be posted on top of the mine.
Here are the controls for P2 (The White Trilobyte in the Lower-Left corner):
The "WASD" keys control movement
The "E" key uncovers the square you are currently above
The "Q" key marks the square you are above.
If you successfully mark a mine a BLUE flag will be posted on top of the mine.
Once you think all mines are revealed, press F to reveal the position of all the mines. Whoever posted the most flags wins the round.
Have fun and thanks for playing.
And thanks for reading this insanely long, but very comprehensive instruction page!
I used a list "MineXY" to record the X and Y coordinates of all the mines. When either player checks a square it checks the X and Y coordinates of all the adjacent squares as well as the one the player is standing on. I have a variable called "mines surrounding the player" which is added upon each time the program finds a mine on an adjacent square. Then the player's trilobite quickly changes costume to the appropriate number and stamps itself on to the player's square.
The program does something similar when the player attempts to mark a square. It only checks the square the player is standing on for the presence of a mine using the same list "MineXY".
All the artwork and coding was made by me.
The sound effects came from Colkadome's Impossible Game Clone and Astro's Halloween Project
Feel free to use any of the graphics or sound effects however you'd like.
You have my permission to mess around with my code as well.