Well here it is so far:
Anyone who owns the book can clearly see I've done nothing but copy code straight from the book. Alas here are changes I will be making myself at suggestion of the text:
- Print a count of peaks.
- Print location of valleys as well as peaks.
- Find lowest and highest point.
- Assuming distance between points is 100 metres, give location of peaks and valleys relative to position 0,0.
- Use all eight neighbouring points instead of four.
It should be a fun exercise to get me used to using arrays then maybe I can return to my turtle project.
0 comments:
Post a Comment