A Tetris game with an AI, made using JavaFX
This is a clone of guideline tetris, originaly made for a school project.
The 'AI' works by scoring possible moves (all x-positions and all orientations for the current tetromino and the held tetromino), based on the height of the highest square and the number of wells, holes and edges, and then changing the game input each frame to accomplish the move with the highest score.