lunduniversity / introprog

Teaching material for "Introduction to Programming using Scala" at Lund University, LTH. http://cs.lth.se/pgk/
142 stars 179 forks source link

improve BlockBattle instruction and doc of methods #421

Closed bjornregnell closed 4 years ago

bjornregnell commented 5 years ago

Explain and document given code. Consider rename eraseBlocks to redraw blocks. BackgroundColorAtDepth etc, Comments welcome.

OliverPerssonB commented 5 years ago

One economical edit is simply adding a comment line, like the on in update bellow, saying something like "Use to erase old points". This can also be done in the colorAtDepth method, giving more hints to the purpose of the function.

bjornregnell commented 4 years ago

@OliverPerssonB Would you be prepared to makes this simple fix in a PR?

OliverPerssonB commented 4 years ago

Yes, I will fix it during the week.