Strange rotation problem

Everytime I try to rotate my piece, there keep two errors appearing:
at first, it stops in mid-air and another one appears (so moveDown returns false) but I think I can fix this.
The bigger problem is, if I debug the program, when I step through using the “Playbutton” going from breakpoint to breakopint, my current piece does not change correctly. If I step through using the “one step” thing, it works, and now I am confused. :frowning:

Have you written test cases to see if the components behave correctly in isolation?
This might be easier than manually producing certain situations and debugging everything at once using the views.

1 Like