Skip to content

brpereiraa/42.BSQ_Revised

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BSQ_Revised

This project is a (possible) fix for the BSQ done during the piscine.

About

BSQ is about receiving a map with open spaces and obstacles and with the open spaces, creating the biggest square possible. If there is more than 1 square with the same length, than it should create and print the one closer to the beggining of the map.

During the piscine our project failed because we didn't take into consideration a 1x1 map and that was the first test so we failed BSQ. In this the 1x1 map works, however, the project never got to be tested and it might or might not be correct.

There was some code clean up in this version, which made functions smaller and a header file was also added.

Instructions

To run this project you can use the 3 maps within the "maps" folder, or create your own with pearl.

1. To create a map with pearl, run the following command:

./Pearl {width} {height} {density} > {file}

$ ./Pearl 40 30 3 > maps/map_40x30

2. Now we need to create the executable with make. For this simply run make.

$ Make

3. At last we run the executable with the map we want to run as argument.

$ ./bsq maps/map_40x30

Disclaimer

1. This project was originally done during the piscine at 42Porto during the month of february of 2023. The subject could have changed but the general idea should still be the same.

2. Also keep in mind this never got to be tested as it failed the first test and never ran the remaining tests on maulinette.

About

Cleaned up version of BSQ done during Piscine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published