I have written a version of Tetris called Combatris. The game support standard and marathon as standalone game and standard, marathon and battle as multiplayer game (currently local network only).
The game is written in C++11 using SDL2 and can be found here: https://github.com/drpatrik/combatris
The game has been tested on Raspberry 3B and Raspberry 3B+ it also works under OSX, Windows 10 and Linux in general. All instructions how to build it is included in the README.md file.