Assignment 5b in the blockmole lab provides the following given code:
def block(pos: Pos)(color: JColor = JColor.gray): Unit = {
val x = ??? //räkna ut fönstrets x-koordinat i pixlar istf block
val y = ??? //räkna ut fönstrets y-koordinat i pixlar istf block
window.fill(???)
}
I have noticed students getting confused about the comments and translating windowSize into pixel coordinates as opposed to pos. I would argue that the comments are somewhat misleading, and could potentially be changed to "räkna ut blockets {x,y}-koordinat...".
Assignment 5b in the blockmole lab provides the following given code:
I have noticed students getting confused about the comments and translating
windowSize
into pixel coordinates as opposed topos
. I would argue that the comments are somewhat misleading, and could potentially be changed to "räkna ut blockets {x,y}-koordinat...".