Skip to content
Edit this page

Build

The Refrigerator Puzzle Solver is written in C++17 and uses Qt 6.

Install dependencies

On Ubuntu:

sudo apt install build-essential qt6-base-dev

Build the program

From the project root:

qmake6 refrigerator_puzzle_solver.pro
make
./refrigerator_puzzle_solver

Run the tests

qmake6 refrigerator_puzzle_solver_test.pro
make
./refrigerator_puzzle_solver_test

Files

File Description
src/puzzle_piece.h/.cpp Pictures and puzzle pieces
src/solver.h/.cpp Backtracking solver, without Qt
src/main_dialog.h/.cpp The Qt user interface
src/main.cpp Program entry point
tests/test_refrigerator_puzzle_solver.cpp Qt Test unit tests
refrigerator_puzzle_solver.pro Qt project file for the program
refrigerator_puzzle_solver_test.pro Qt project file for the tests
refrigerator_puzzle_solver.pri Code shared by both project files