meltedlilacs / ben

Bright Enough to Navigate
Other
0 stars 0 forks source link

Grid class Requirements #3

Open meltedlilacs opened 10 years ago

meltedlilacs commented 10 years ago

Class Grid requirements (feel free to refine):

I'm thinking that Square's pointers in the 4 directions should remain private, but Square should be declared a friend class of Grid.

I think the best way for Grid to keep track of the Squares is to have a pointer to the Square at (0, 0).