"); msg1.document.write("
"); msg1.document.write("

Minesweeper"); msg1.document.write("

"); msg1.document.write("by P. Occil
JavaScript Version (c) 2000 by P. "); msg1.document.write("Occil

"); msg1.document.write(""); msg1.document.write("
"); msg1.document.write("
Hosted by www.Geocities.ws

"); } function openHelp() { //msg2=window.open("","msg2","height=600,width=450,left=0,top=0, scrollbars=yes"); msg2=window.open("","msg2", "scrollbars,height=450,width=450"); msg2.document.write("Minesweeper Help"); msg2.document.write("
"); msg2.document.write("
"); msg2.document.write("

Minesweeper Help"); msg2.document.write("

"); msg2.document.write('

'); msg2.document.write("

The object of Minesweeper

The object of Minesweeper is to find all " +"the mines as quickly as possible without uncoverin" +"g any of them.

To play Minesweeper " +"

  1. On the Game menu, click New<" +"/b>.
  2. To start the timer, click any squ" +"are on the playing field.
Notes" +"
  • The game area consists of the playing" +" field, a mine counter, and a timer.
  • You can " +"uncover a square by clicking it. If you uncover a " +"mine, you lose the game.
  • If a number appears " +"on a square, it indicates how many mines are in th" +"e eight squares that surround the numbered one. <" +"li>To mark a square you suspect contains a mine, h" +"old CTRL and click on it.

Strateg" +"ies and tips

  • If you are uncertain a" +"bout a square, hold CTRL and click on it twice to " +"mark it with a question mark (?). Later, you can e" +"ither mark the square as a mine or uncover it by r" +"ight-clicking again once or twice.
  • Look for c" +"ommon patterns in numbers, which often indicate a " +"corresponding pattern of mines. For example, the p" +"attern 2-3-2 at the edge of a group of uncovered s" +"quares indicates a row of three mines next to the " +"three numbers.
Hosted by www.Geocities.ws

"); } // End -->
Cut-N-Paste JavaScript Home / Winmine



Peter Occil has sent along a great JavaScript implementation of the classic Minesweeper game. This is a great piece of scripting, and of course is fun to play as always. Just plug it in - it's ready to go! You can give the game a try, then grab the code below.




Many thanks to Peter for providing this script.



GRAB THE SCRIPT: The link below is a zipped file containing the files for this utility. If you right click on either (click and hold down on Macs), you will get a menu that will let you save the document to your hard drive. You will need to unzip the files onto your computer.

Grab the code for this script: winmine.zip and unzip the files into a directory on your computer.
Hosted by www.Geocities.ws

1