Want to see a Tetris Bot in action? Start Tetris (UE).7z <Tetris (U) [!].nes> in Nintaco. Then, select Tools | Run Program... Click on the Find JAR... button and select the .jar in the attached zip. Then, press Load JAR. And, finally press Run.
Within Tetris, start the game as either type A or B and at any speed or height. The Bot will take control once the game begins.
To see it play faster, hit the Stop in the program controls window. In the arguments field, type in: fast. And, finally press Run again.
Be sure to hit Stop before closing the game.
I have yet to document the API. But, it provides full programmatic control of the emulator and it's designed to work from any language. From the main menu, Tools | Start Program Server... enables remote API access into the emulator. I translated the bot to Python, Lua and C# to demonstrate (other languages pending).