cat test/map.txt
9
...........................
....o......................
............o..............
...........................
....o......................
..............o............
...........................
......o..............o.....
..o.......o................
make
./bsq test/map.txt
.....xxxxxxx...............
....oxxxxxxx...............
.....xxxxxxxo..............
.....xxxxxxx...............
....oxxxxxxx...............
.....xxxxxxx..o............
.....xxxxxxx...............
......o..............o.....
..o.......o................
You can generate a map instead of passing one in parameter. To do so you have to first compile the program
make
and run it specifying the number of lines and the pattern of your square
./bsq 10 "..ooo.."
..oooxx..ooo...
.ooo.xx.ooo....
ooo....ooo....o
oo....ooo....oo
o....ooo....ooo
....ooo....ooo.
...ooo....ooo..
..ooo....ooo...
.ooo....ooo....
ooo....ooo....o
oo....ooo....oo
o....ooo....ooo
....ooo....ooo.
...ooo....ooo..
..ooo....ooo...