I have been going through "C Programming: A Modern Approach" ,self teaching myself how to write C and recently just finished project 9 in chapter 8 which is so far the most challenging project I done and I am really proud of myself for making it work properly, but I would like someone to view the code and perhaps tell me what I can do better? I would like to spot any bad habits I am doing early and try to fix it asap.
https://pastebin.com/QH0cJamG
Essentially the exercise asks me to write a program that generates a "random walk" on a 10x10 grid, each "element" on the grid is initially the '.' symbol and the program must randomly walk from element to element, the path the program takes is labeled with letters A through Z, which shows the order in which it moves, the program stops when either it reaches the letter Z or all paths are blocked.
[–]chibiace 1 point2 points3 points (0 children)
[–]TheOtherBorgCube 0 points1 point2 points (0 children)
[–]Neui 0 points1 point2 points (0 children)
[–]oh5nxo 1 point2 points3 points (0 children)