Skip to content

Login system with CAPTCHA, OTP, and Minesweeper game in Java. Includes leaderboard and score saving.

Notifications You must be signed in to change notification settings

Eggplant203/Login2Minesweeper_Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Login2Minesweeper_Java

A Java-based login system integrated with a Minesweeper game, featuring CAPTCHA verification, OTP confirmation, score tracking, and leaderboard functionality.

Screenshots

Login Screen Game Screen
Login Screen Game Screen

Features

  • 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.

Project Structure

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

Installation

  1. 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
  2. Extract the ZIP file: If you downloaded the ZIP file, extract it to your desired location.

  3. Open in VS Code:

    • Launch Visual Studio Code.
    • Select File -> Open Folder....
    • Choose the parent folder of LoginSimulate (e.g., Login2Minesweeper_Java-master).
  4. Run the Application:

    • In the sidebar EXPLORER, right-click on LoginApp.java.
    • Select Run Java to start the application.

Usage

  1. Login: Run LoginApp.java, use admin or guest login with CAPTCHA/OTP.
    Note: Three default accounts are pre-created. Check src/index.txt for usernames and passwords.
  2. Play Minesweeper: Select the game after login. Scores are saved to score.txt.
  3. Leaderboard: View top scores after completing the game.

Reference

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.

About

Login system with CAPTCHA, OTP, and Minesweeper game in Java. Includes leaderboard and score saving.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages