nov 10
Continue random walk exercise from last time.
Discus inheritance ideas; see attached.
in class
Look at the random walk problem as a class exercise
- chapter 9, exercise 12 ... and perhaps 13, 14 continuation
- chapter 11, exercise 18
- can this problem fit into an object oriented design framework?
We finished random_walk_2 (1D) and random_walk_3 (2D) from chapter 9.
We got most of the way through an object oriented version random_walk_3 (including a Cell object that was a bit of overkill, since here it essentially just stores an integer). I emphasized incremental changes with interactive tests as we go.
All three versions are attached.