A Java-based login system integrated with a Minesweeper game, featuring CAPTCHA verification, OTP confirmation, score tracking, and leaderboard functionality.
Login Screen | Game Screen |
---|---|
- Login System: Admin and guest logins with CAPTCHA and OTP security.
- Minesweeper Game: Play after login, with score saving.
- Leaderboard: Tracks top scores, highlighting the top 3 players.
- Password Masking: Hidden passwords, except for the current user.
- Dynamic CAPTCHA: CAPTCHA regeneration and validation.
LoginSimulate/
├── src/
│ ├── index.txt # Contains user information (username, password, email)
│ └── Minesweeper/
| ├── Code/
| | ├── Board.java
| | ├── Leaderboard.java
| | ├── Minesweeper.java
| | ├── ScoreEntry.java
| | └── Score.txt # Save user scores
| └── Pic/ # Contains images used in the GUI
├── Account.java
├── LoginApp.java
└── LoginSelection.java
-
Download the ZIP file: Clone the repository or download it as a ZIP file from GitHub.
git clone https://github.com/Eggplant203/Login2Minesweeper_Java.git
-
Extract the ZIP file: If you downloaded the ZIP file, extract it to your desired location.
-
Open in VS Code:
- Launch Visual Studio Code.
- Select File -> Open Folder....
- Choose the parent folder of
LoginSimulate
(e.g.,Login2Minesweeper_Java-master
).
-
Run the Application:
- In the sidebar EXPLORER, right-click on
LoginApp.java
. - Select Run Java to start the application.
- In the sidebar EXPLORER, right-click on
- Login: Run
LoginApp.java
, use admin or guest login with CAPTCHA/OTP.
Note: Three default accounts are pre-created. Checksrc/index.txt
for usernames and passwords. - Play Minesweeper: Select the game after login. Scores are saved to
score.txt
. - Leaderboard: View top scores after completing the game.
This project utilizes code from the Java Minesweeper Game by janbodnar. The original Minesweeper game code has been adapted and integrated into the login system with additional features.