This project solves a logic puzzle involving LEDs based on input from a text file. It is my solution to the first Junioraufgabe of the BWINF42.
Eingabe.txt: Input file with the puzzle configuration.Ausgabe.txt: Output file with the results.LEDs - mit DEBUG Tools/: Source code and debug tools.LEDs - Abgabe/: Submission version.
- Make sure you have Java installed.
- Open the
LEDs - mit DEBUG Toolsfolder. - Compile the Java files in the
srcdirectory:javac -d bin src/*.java - Run the program:
java -cp bin App
App.java: Main application entry point.FileReaderx.java: Reads and parses the input file.LEDberechner.java: Contains the logic for calculating the LED states.FileCreator.java: Writes the results to the output file.Printer.java: Utility for printing arrays (for debugging).
The input file (Eingabe.txt) should have the following format:
<width> <height>
<row 1>
<row 2>
...
<row n>
The result will be written to Ausgabe.txt and printed to the console.
This projekt is under the MIT License.