In order to separate the learning from the game engine it self i created a nodejs app for this purpose, this also allows the engine to be distributed to multiple computers to allow faster learning

the api is written to be generic and will allow different games and algorithms and uses mongoDb for storage

tetris-term

Code can be found on Github