Skip to content

hyper-windy/Light-up-Solver

Repository files navigation

                            LIGHT UP SOLVER
                            ===============

AUTHOR: To Thanh Phong


DESCRIPTION: 

	This is a solver for light up game (akari) written in Prolog.
	Please visit: https://www.comp.nus.edu.sg/~kanmy/courses/3243_2007/hw-lightup.html
	for more information.


REQUIREMENT: 

	- SWI-Prolog.
	- GCC Compile.



RUN STEP BY STEP
****************

	- Compile "input_helper.c" and "output_helper.c" into executable files 
	  by running Makefile (Ex: "input_helper.exe" and "output_helper.c").
	- Run "input_helper.exe <test_name>.txt" in your terminal and you will 
	  see file "run_<test_name>.pl".
	- Run "swipl < run_<test_name>.pl" and solution of test case will be 
	  in folder Solution.
	- Run "output_helper.exe <test_name>.txt" and visualize solution in
	  folder Output.

Example:

	$ input_helper.exe 1.txt
	$ swipl < run_1.pl
	$ output_helper.exe 1.txt



RUN WITH PIPELINE
*****************

Note: Requirement Bash Shell and change mode of file "agent.sh" into executable mode.

	- Run "./agent.sh <test_name>.txt".
	- Tracking solution in file "tracking.txt".

Example:

	$ ./agent.sh 1.txt






About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published