Files & Source Code
Outline of Files:
| File | Function |
|---|---|
| minesweeper | Intro screen. Calls minecore in a very small new window. Contains no other code. Launches minecore with a button instead of a link, but this is not necessary. |
| minecore | The program itself, with almost all the code. Includes the game and the menus. It automatically adjusts to the correct size window to look good. |
| minecustom | Custom game settings. When called, minecore is closed. minecustom sets a new set of cookies and re-launches minecore. |
| minewin close |
Appears when the player wins. This is a standard HTML submission form. Close.html is used after a successful submission. |
| minepersonal mineworld |
Reports highest times. The minepersonal comes from cookies, and mineworld is hardwired, but could be made CGI-based. |
| mineabout minehelpinstructions minetechnicalnotes minefilesandsource minelinks |
Help and information files. No code in these files. |
| jsminedemo.zip | Zipped package of all the files in Javascript Minesweeper. See the link at the end of this page. |
| /images | Directory containing all images used (see below). |
Images:
| Cells | |||||||||||
| Bombs | |||||||||||
| Counters | |||||||||||
| Faces | |||||||||||
| Menus | |||||||||||
| Borders | |||||||||||
Download the source:
It can be difficult to download javascript pages direcectly with "file/save as", especially with frames, indirectly referenced images, self-closing windows, and linked js files, so I've created a zip package of the source. Play with the source code - it's got lots of neat tricks in there, and I am happy to discuss it.