Inspiration
I loved geography, and me and my family always were trying to find the latitude of cities when we were bored on long car rides. I took the theme of wordle, a game I love, and implemented it into this game.
What it does
It's a game like Wordle, but instead of guessing a word and getting to know if your letters are correct or not, you guess cities near a latitude line, and are given the distance from it.
How we built it
I used python's "Tkinter" module to build the GUI, and the "geopy" module's "Nominatim" API to get the longitude and Latitude data. Then, I used a simple formula to calculate the distance from the line in miles, and after that, it was a few if/else statements and adding some text.
Challenges we ran into
I struggled to get the game to limit the guesses properly, and ran into many errors along the way. Also, it was hard to make a GUI with tkinter that looks appealing.
Accomplishments that we're proud of
I'm very proud that I made this a reality, and that it looks as good as it does. There were a lot of hiccups along the way, but having the final product feels so amazing.
What we learned
I learned how to use tkinter and their ttk styled widgets. I also learned how to use an API to get longitude and latitude data for a city. I also learned lots of geography from testing the game :)
What's next for Locle
I think after this, I'm going to try and add some images, and spend more time on making it look better. However, I'm still very satisfied with what I have so far.
Built With
- api
- geopy
- python
- tkinter
Log in or sign up for Devpost to join the conversation.