This article describes how a computer can play the classic video game Tetris by getting information about the board, determining good actions, and performing those actions. This article includes software capable of playing Tetris in real time. The software includes the best real-time Tetris-playing algorithm in the public domain. This article defines rules for "Standard Tetris", a specification based on the original 1986 pre-commercial version of Tetris for the Personal Computer (PC). In 2003, the software included in this article was used to enable a computer to play Tetris running on a separate computer. An ordinary USB video camera was...
http://colinfahey.com/tetris/tetris.html