/Crosswords_Puzzle

This is a Java Swing-based crossword puzzle solver for fun and interactive puzzle-solving.

Primary LanguageJavaMIT LicenseMIT

Cross Words PuzzlešŸ§©

This is a Java Swing-based Crossword Puzzle for fun and interactive puzzle-solving.

Description

The application allows users to play crossword puzzles of different sizes (4x4 and 6x6). Each cell in the puzzle contains a single character, and the user can attempt to solve the puzzles by filling in the correct characters.

The application also includes a timer that starts as soon as the user begins playing a puzzle, keeping track of the time period for which the user has played. Additionally, the application stores the details of the highest scorer to date.

The admin, who is the owner of the site, has the following functionalities:

  • Generate puzzles of different sizes (4x4 or 6x6) by assigning questions based on the table size and cell availability.
  • Assign the character "*" to cells where data entry is not required.

The user has the following functionalities:

  • Attempt the puzzle by editing the cells that are not filled with the character "*".
  • Users, other than the admin, cannot edit cells filled with "*".
  • Submit the puzzle after attempting it.
  • View the answers for the puzzle they attempted.

Installation

To run the "Cross Words Puzzle" application locally, follow these steps:

  1. Clone the repository: $ git clone https://github.com/hamzakhan663/Crosswords_Puzzle.git $ cd Crosswords_Puzzle

  2. Compile the Java source files: $ javac CrossWordPuzzle.jar

  3. Run the application: $ java CrossWordPuzzle

Usage

  1. Start the application by running the LeadBoard class.
  2. Choose a puzzle size (4x4 or 6x6) to generate a new puzzle.
  3. Fill in the cells of the puzzle by entering single characters. If more than one character is entered, a dialog box will prompt you to enter only one character.
  4. As you solve the puzzle, the timer will keep track of the time you spend.
  5. Once you have completed the puzzle, submit it to view the correct answers.
  6. The highest scorer's details will be recorded and displayed.

Contributing

Contributions to the "Cross Words Puzzle" project are welcome! If you have any suggestions, bug reports, or feature requests, please submit them via the project's issue tracker.

License

This project is licensed under the MIT License.