https://github.com/lunarwhite/minesweeper
Old Windows GUI game.
https://github.com/lunarwhite/minesweeper
game java java-swing minesweeper windows-game
Last synced: about 1 year ago
JSON representation
Old Windows GUI game.
- Host: GitHub
- URL: https://github.com/lunarwhite/minesweeper
- Owner: lunarwhite
- License: mit
- Created: 2021-07-28T02:41:20.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-14T17:49:04.000Z (over 2 years ago)
- Last Synced: 2025-02-17T10:49:13.836Z (over 1 year ago)
- Topics: game, java, java-swing, minesweeper, windows-game
- Language: Java
- Homepage:
- Size: 7.69 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# minesweeper
Classic Microsoft Windows game, bulid with Java Swing.
```
.
│ README.md
├───doc
│ 1-ProblemAnalysis.pdf
│ 2-Design.pdf
│ 3-ErrorHandling.pdf
├───image
├───res
└───src
├───bean
│ HeroBean.java
│ MineLabel.java
├───dialog
│ AboutSweeping.java
│ HeroDialog.java
│ UserDefinedDialog.java
├───listener
│ Listener.java
│ UserDefinedListener.java
├───main
│ MainFrame.java
├───panel
│ BombjMenuBar.java
│ BombjPanel.java
│ FacejPanel.java
├───timer
│ TimerListener.java
└───tools
LayBomb.java
StaticTool.java
```
## 1 Overview
- test and run:
- download latest [release](https://github.com/lunarwhite/minesweeper/releases/tag/beta) and unzip
- double-click `minesweeper.jar` in folder with `\image`
- jdk: `openjdk8-redhat`
## 2 Documents
- 1-ProblemAnalysis.pdf
- Analyzing the Problem
- Requirements Specification
- Prototype
- 2-Design.pdf
- Data Structures
- Algorithms
- Modular organization
- 3-ErrorHandling.pdf
## 3 Tool-list
- Conditionals (if-else)
- Complex conditionals (nested if-else)
- Loops
- Nested loops
- User-defined methods
- User-defined methods with parameters
- User-defined methods with return values
- Use of additional libraries. Example: Random, GUI.
- Arrays
- 2D Arrays
- User-defined objects
- User-defined objects where more than one instance of the object is created
- Input validation: handle most common mistakes in input - and react usefully.
- User-defined objects where more than one instance of the object is created
- Use of flags other than to simply determine if a loop should repeat or not.
- Use of try-catch to handle at least two checked exceptions.
## 4 Reference
- https://math.hws.edu/javanotes/
- https://ocw.mit.edu/courses/civil-and-environmental-engineering/1-124j-foundations-of-software-engineering-fall-2000/lecture-notes/
- https://github.com/ChrisMayfield/ThinkJavaCode2
- https://github.com/lxf44944/minesweeper_java
## 5 Sceenshots



