https://github.com/vinicamposdev/floodit
Simple Implementation of a Solver for Flood It Game
https://github.com/vinicamposdev/floodit
Last synced: 2 months ago
JSON representation
Simple Implementation of a Solver for Flood It Game
- Host: GitHub
- URL: https://github.com/vinicamposdev/floodit
- Owner: vinicamposdev
- Created: 2022-05-28T16:19:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-29T07:56:18.000Z (over 3 years ago)
- Last Synced: 2025-01-21T11:21:58.102Z (11 months ago)
- Language: C
- Size: 6.02 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
# Flood-It Solver

Create a solver for this FloodIt puzzle.
## Game Example
https://hokama.com.br/disciplinas/cic111_2022s1/trabalho01/online.html?sz=6&nc=6
## Project Description
[Detailed project description file](docs/trabalho01.pdf).
## Install and Execute
The pré requisite for the installation is a debian like envirioment, and install the GCC compiler. For gcc you can install with:
```sh
sudo apt install build-essential
```
If you have make installed, just run in src folder the following command:
```sh
cd src
make
```
Alternativily, you can execute with gcc command:
```sh
gcc *.c -Wall -pedantic-errors -o programa
```
And run the programan with:
```sh
echo ../casos-testes/entradas/entrada01.txt ../output/saida01heur.txt | ./programa
```
## Test Cases
There are examples in casos-testes directory. The entradas folder has the input files that will be readed by program, and in imagens-ilustrativas folder has the images represent the respective imput file, like the following image:
.