The aim of Tetris is to clear as many lines as possible, and therefore, to make as many moves as possible. To meet this goal, the Artificial Intelligence system I have developed decides the best move for a given Tetris piece by trying out all the possible moves (rotation and position). It computes a score for each possible move, and selects the one with the best score as its next move. The score for each move is computed by assessing the grid the move would result in.
Technologies used: DLV.