2015-03-30

TDD Tetris Tutorial #7: TGM Rotation Rules

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.

Replacing our previously written rotation algorithm with a simpler and more flexible implementation, so that we can change our game to use the rotation rules from Tetris: The Grand Master.

Download as MP4

Episode Archive

2015-03-29

TDD Tetris Tutorial #6: Rotating a Falling Piece

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.

More player controls. We implement rotating the falling pieces, including also support for wallkicks.

Download as MP4

Episode Archive

2015-03-28

TDD Tetris Tutorial #5: Moving a Falling Piece

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.

Time to put the player in control. We implement moving the falling pieces, within the bounds of available space on the game board.

Download as MP4

Episode Archive

2015-03-25

TDD Tetris Tutorial #4: Falling Pieces

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.

We have implemented falling blocks and rotatable pieces in isolation. Now let's put them together by implementing arbitrarily shaped falling pieces.

Download as MP4

Episode Archive

2015-03-23

TDD Tetris Tutorial #3: Rotating Tetrominoes

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.

With a generic piece rotation algorithm at hand, it'll be easier to implement rotating Tetris pieces.

Download as MP4

Episode Archive

2015-03-22

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

2015-03-21

TDD Tetris Tutorial #1: Falling 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.

A core feature of Tetris is that there are pieces falling down. To start small, let's focus on pieces which consist of a single 1x1 block.

Download as MP4

Episode Archive