Bolas

Welcome to Bolas




Welcome to Bolas, a silly physics simulator that I wrote for fun and as a demonstration of my excellent rust and mediocre javascript programming ability. If you just want to play with the bolas, click the button above. Continue reading for a technical explanation of how this project is implemented and deployed.

You might also visit my other projects hashbash and stupidchess. My personal website can be found here. Here's a link to my resume.

First off, the name: "bolas" is Portuguese for "balls". Morei em Portugal durante três anos entre 2022 e 2025. Escrevi este projeto quando estava a morar lá, portanto, chamo-o "bolas".

Why is this interesting to you, recruiter? Well, once you've played the game, you'll see there's some interesting physics simulation being done. Critically, the ball movement and collision detection logic is all done server-side, in rust. The javascript frontend merely receives a stream of updates from a websocket connection and draws the balls where it is told to. This is obviously needlessly complicated, but I hope demonstrates my knowledge of websockets, full-stack web development, and rust programming ability. Here's a link to the code.

I deploy this project on a raspberry pi that runs in my house. It exposes this (and several of my other websites) behind Cloudflare using a cloudflared tunnel. I worked at cloudflare for 5 years, and contributed substantially to the tunnel project, among other things. Cloudflare is also where I learned how to use salt, which is how I configure said raspberry pi. The code for doing that is here.