Server-side rules, real-time multiplayer and the engineering behind Word Duel.
2 min readI make
things work.
I like making complicated things simpler. Sometimes that means untangling software that keeps a business running. Other times it means building a word game because the idea wouldn’t leave me alone.
Denis Martins
Senior software engineer. Arsenal supporter.
Usually planning the next trip.
work/ projects/ notes/ life/
Selected work
Things I’ve built, things I’m figuring out, and the occasional idea that got out of hand.
- Containers
- Serverless functions
- Message queues
- Infrastructure as code
- CI/CD pipelines
- Monitoring & tracing
Make the pieces work together.
Platform modernisation, third-party integrations, APIs and event-driven workflows, built and run in the cloud on Azure and AWS. The kind of engineering you notice most when it stops working. Next, I’m taking it to financial services at Transact.
Explore my experience ↗Loading meaning…
One word. Your turn.
Change exactly one letter to form a valid new word, without repeating a word. Try the four-letter demo, then play the full timed multiplayer game.
Play the full game ↗How I built it
Word Duel looks simple on the surface. Underneath, it’s a real-time multiplayer system where every move must be fair, even when two players act at once or a connection drops.
Each game room is a Cloudflare Durable Object that applies moves one at a time and pushes the new state to both players over WebSockets. Clients can display the game, but they cannot rewrite the room.
Dictionary checks, exact letter changes, turn ownership, deadlines and previously used words are enforced together. A shared used-word set persists across rematches.
The bot plays through the same server-side rules as a human. Easy, medium and hard modes vary think time and move strategy rather than bypassing validation.
Server-defined turn deadlines driven by alarms, cleanup of idle rooms, dictionary-based word meanings, and idempotent match-result recording keep the experience consistent.



Timing is everything.
Everyone holds a button and lets go on time. The worst attempt each round is knocked out until one player is left. Four game modes, a hidden-timer option, and Pass & Play for one shared phone. Try the five-second challenge in the preview.
Play the full game ↗A little more human.
Software pays the bills. There’s quite a bit more to me.
Away from the screen, I’m usually lifting weights, worrying about Arsenal, planning the next trip or finding somewhere good to eat.
01 / Match dayArsenal. Always.
02 / Somewhere elseMore stamps, fewer spreadsheets.
03 / The good stuffFood is part of the trip.
04 / The gymOne more rep.I’m curious by nature. Sometimes that ends in a side project; other times it ends in a conversation, an unexpected destination or another idea I probably didn’t need.
More about meNotes from the bench
What happens to engineering teams when everyone solves problems with an assistant?
4 min readLessons from upgrading mature systems without rewriting everything.
2 min readGet in touch
Have a project, an interesting engineering problem, or just want to say hello?
hello@denis.zone