0
The goal is to try to find on the college campus possible locations for building a new building. The user will enter the matrix representing the college plan.
R = Ruas
P = Prédios
V = Área Verde
E = Estacionamento
R R R R R R R R R R R R
R V V V V V V V V E E E
R V P V V V P V V E E E
R V V V V V V V V E E E
R V V V V V V V V V V V
R V V V V V P V V V P V
R V P V V V V V V V V V
R V V V V V V V V V V V
R E E E E E E E E E E V
R E E E E E E E E E E V
R E E E E E E E E E E V
R R R R R R R R R R R R
After receiving this user matrix, the program will mark with the letter N (New) all possible positions for the new building. The rules for the positioning of the new building are: it cannot be next to streets, parking lots or other buildings, that is, only in positions surrounded by green areas as in the example below:
V V V
V N V
V V V
At the end of the process present to the user the matrix with the letter N in all possible
**I’m a beginner in programming in general, and would like tips on how to do this algorithm(Mainly on how to check which elements have green area around).