May 29, 2022

Automatic Tetris player with a cost function

The screenshot shows a Tetris simulator which is controlled by an Artificial Intelligence. The AI works with a feature vector which is visualized as a heatmap. The goal for the solver is to minimize the cost value. blue means that the costs are zero, while red is equal to very high costs.
The AI doesn't analyzes the main window which contains of the grid but the only important information is the feature vector which contains of the height and the holecount information. For the AI the world contains of two single variables.