What made me do this to myself?
So I was playing Tetris, and a thought just came into my mind: what if I make a Tetris bot?
What did I have to do?
To do this, I first had to create my own Tetris game, and then make an AI that will play the game and train it.
How I built it
To get started, I began creating the game using the pygame API because it’s the game engine that I’m the most comfortable using.
Challenges we ran into
There were certainly a lot of challenges along the way. Firstly, I spend a lot of time perfecting the particles such that they are not too obstructive but still visible. But by far the biggest challenge has been time. I started on the project rather late, and coding everything was rather time consuming. In the end, I ended up not having enough time to code the most interesting part of the project - the AI.
Accomplishments that we're proud of
I’m still really proud about the smooth hard drop solution that I thought of while doing other homework.
What we learned
During the time developing the game, I actually learned a surprising amount about python, such as how to use dictionaries, applications of classes, and how to combine multiple lines of code into 1 line using semicolons.
What's next for Tetris
I’m definitely going to implement the AI over summer, just as a nice learning experience.
Log in or sign up for Devpost to join the conversation.