Inspiration
Tetris is a classic game fun for multiple generations. I thought that it would be fun to make it myself so I could learn about breaking down a project..
What it does
The user can play Tetris from the command prompt with arrow keys.
How I built it
I used python and Tkinter to implement Tetris.
Challenges I ran into
I first tried to make an app in Swift. I ended up finishing it (it's a 2-tabbed app that's essentially a random text generator), but I felt that I could push myself to do more. So I changed projects halfway through the hackathon. I had to do some debugging and read up on the Tkinter documentation. This was especially necessary for moving blocks and clearing rows. Clearing rows proved to be especially tricky because I had to keep track of the block IDs as well as their coordinates (which are unfortunately separate in Tkinter).
Accomplishments that I'm proud of
In school I have done some projects, but they already had the functions outlined and students just had to fill in the code. Given that this is my first Hackathon and that I changed projects, I think I did well.
What I learned
I learned how to start a project on my own, decipher the necessary functions and implement them from start to finish.
What's next for Tetris
A scoreboard and more visual effects such as a highlighted area where the shape will drop!
Built With
- python
- tkinter
Log in or sign up for Devpost to join the conversation.