A Java implementation of the classic Minesweeper game, originally developed as a Java applet in 1997.
This is a preserved historical artifact from 1997 containing original Java applet source code. It is maintained as a retro computing archive for educational and nostalgic purposes. Java applets are no longer supported in modern browsers, and this code reflects Java language conventions and practices from that era.
JVMines is a nostalgic recreation of the Microsoft Minesweeper game concept, implemented in Java. The project features a fully functional Minesweeper game with:
- Customizable grid dimensions and mine counts
- Interactive cell-based gameplay
- Visual feedback with images and digital displays
- Support for flagging suspected mines
- Timer functionality
- Custom button and display components
- jvmines.java - Main applet class and game interface
- mines.java - Game logic and playground management
- cell.java - Individual cell/button implementation
- custombutton.java - Custom button component with image support
- digitaldisplay.java - Digital display component for score/timer
- java.html - HTML wrapper for the applet
- The playground is filled with mines hidden beneath cells
- Click on a cell to reveal it
- Numbers indicate how many mines are adjacent to that cell
- Right-click to flag cells you suspect contain mines
- Reveal all non-mine cells to win
- Hitting a mine ends the game
- Language: Java
- Type: Java Applet
- Target: Java 1.1+ compatible browsers
- Created: April 1997
- Original Author: umbio
javac *.javaThe game is designed to run as a Java applet. Include the HTML file in a web page or use an applet viewer:
appletviewer java.htmlA clickable cell that can display an image and respond to mouse events. Supports enabled/disabled states and dynamic image updates.
Core game logic engine that:
- Generates the game playground with specified dimensions
- Places mines randomly
- Calculates adjacent mine counts
- Tracks visited cells and game state
A seven-segment style digital display component for showing game statistics (mine count, timer).
A button component with image support for custom visual representation.
Written by umbio in Messina, Italy (1997)
The original concept is based on Microsoft's Minesweeper game.
See LICENSE file for details.
See CONTRIBUTING.md for contribution guidelines.