Puzzle program in written in C++ that takes an input PGM image and performs puzzle moves.
Find a file
2026-01-11 15:56:21 +02:00
.gitignore Add missing newline at end of files 2024-03-07 18:13:14 +02:00
driver.cpp Add thorough code comments 2024-03-07 18:01:31 +02:00
Makefile Add Makefile 2024-03-04 12:50:41 +02:00
puzzle.cpp Fix segmentation fault by only freeing summary array memory when it was allocated in the first place 2024-03-07 18:13:54 +02:00
puzzle.h Remove unnecessary blank variables/methods 2024-03-07 18:02:59 +02:00
README.md update README 2026-01-11 15:56:21 +02:00

BLLCHA013 A puzzle program that takes an input PGM image and performs puzzle moves

BLLCHA013 A puzzle program that takes an input PGM image and performs puzzle moves

Usage instructions:

A Makefile is included. A compatible C++ compiler is required, such as GCC g++ or LLVM/clang clang++ supporting the C++11 standard. The Makefile assumes g++.

To compile this software, run make in this directory. The software must be compiled in order to run. To run, execute the driver executable with appropriate command line arguments (example from this directory: ./driver -s 3 -n 8 -i mona512.pgm -x summary.pgm)

Source file explanation:

puzzle is the header file containing declarations of methods and structs required in other files.

puzzle.cpp is the implementation file, containing the methods needed to execute the programs logic. It contains the bulk of the program logic.

driver.cpp is the driver file, containing the main() method. It calls into methods defined in puzzle.cpp which perform the bulk of the program logic.