Insert tetrominoes position into an array – Python Plays Tetris p. 4

Until now in this series we’ve been working to retrieve the informations from the board: detecting the board, the tetrominoes and their position.Now it’s the time to use these informations in order to process them. If we consider that we want to use some sort of artificial intelligence, even if really basic, to solve the […]

Detect tetris board and Tetrominoes – Python Plays Tetris p. 3

We’re going to see in this tutorial how to detect the tetris board and the tetrominoes from this image below. How to detect the board? There are more methods that we can use to detect the board. Color detection: the board is the biggest black square on the screen, so we could detect the black […]