Ryan Bowen 2011. Powered by Blogger.
RSS

Terrain Navigator Update

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:


  1. Print a count of peaks.
  2. Print location of valleys as well as peaks.
  3. Find lowest and highest point.
  4. Assuming distance between points is 100 metres, give location of peaks and valleys relative to position 0,0.
  5. 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.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comments:

Post a Comment

Total Pageviews