TDD Tetris Tutorial #2: Rotating Pieces of Blocks

This screencast series shows how to go through the TDD Tetris Tutorial where you can learn Test-Driven Development by at first writing code to pass pre-written tests, so that it will be easier to write your own tests when the time for it comes.

Another core feature of Tetris is that it's possible to rotate the pieces. Let's write a generic algorithm for rotating arbitrary shapes. That should bring us closer toward a game of Tetris.

Download as MP4

Episode Archive