elefantes sobre sitios vacíos

This commit is contained in:
serxoz 2021-10-24 19:21:14 +02:00
parent bc099eef10
commit 2870392cf3

View File

@ -57,11 +57,11 @@ struct coord randomCoord(WINDOW * win){
struct coord res = {rX, rY};
if (mvwinch(win, res.y, res.x) == ' '){
return res;
} else {
if (mvwinch(win, res.y, res.x) != ' '){
randomCoord(win);
}
return res;
}
void generarElefantes(WINDOW * win, struct coord *buff){
@ -169,4 +169,3 @@ int screen() {
return 0;
}