Test Driving development course TDD MOOC: Tetris
This exercise are implementing a Tetris game using Test-Driven Development (TDD).
This exercise uses JavaScript (ES6/ECMAScript 2015), Mocha testing framework and Chai assertions, but the concepts are language agnostic. It would be quite easy to translate the example tests to another programming language as you go. There also exists an older Java-based predecessor of this exercise.
Refer to the course material to learn more about TDD.