top of page

Padel Tracker Score - Script

This project is a collaboration between my brother and me. The goal was to create a way to track your points in the court so that nobody steals your points, and if there are visitors, they can know the score of each one. But the challenge will come down the line.

Class pygame.png

The base application

The first issue was that whenever I clicked right, it went a point up. The challenge was that it couldn't be a simple += 1 because Padel tracks like Tennis.

So, after creating a player class out of my PyGame test, I created a dictionary with the points, and whenever somebody clicks their point button, it goes up one in the list.

Regarding design. Using a different Python page called constants I used the fonts and the colors in there so that I can change the colors in a versatile way without going inside the code and change it.

Afterwards, it became a matter of design of adding a timer and local time for user experience using ticks, os and local time to display it. All became a pygame dirty sprites and blitz to draw it.

​

Captura de pantalla (1).png
License.png

The licenses

My brother wanted to monetize the software. After research, I reached the Google Sheets approach.

Publishing my sheets as a CSV, it splits each line to check it the license string matches one of the rows, and if it does if its active and the date hasn't expired. If not it quits the app.

The physical button

Now we need buttons. With no knowledge of engineering, I realised I needed a button that whenever it get pressed it interacts like a key. Bought my button, arduino nano and cable and started to program, until the nano showed me it doesn't have a key library.

To solve it, inside my program I made it so it constantly looks for arduinos that are printing a certain word like "left", "right", "enter", and if it doess to usee pygame.key function.

WhatsApp Image 2025-07-23 at 8.19.53 AM.jpeg
match scorer.png

Data exporter

Lastly was the challenge of exporting the information out of the software to a Google Sheets to verify the amount of time the game has been played. 

I stored the information of the points and winners whenever a player started, the elapsed time, and local time to a dictionary and exported it using the google sheets API.

Thank you for your time.

Screenshot 2025-07-23 081725.png
bottom of page