0
I need help!!!
I want to write a small game in C, the game is to move in a labyrinth, the labyrinth is big 20x20 and I use gotoxy for move in horizontal and vertical. I want X and Y not to exceed the size of the labyrinth (20 x 20)! how can I do?
3 Respostas
+ 4
Try make your code and share here. There is a limit then you can write...
if(x>20) {
x=20;
}
else if(x<0) {
x=0;
}
0
yes thank you
0
I suggest you to use floodfill algorithm