A BrickGame game console with a CLI interface using ncurses. And a library for playing Tetris using a finite state machine