LETTERLOCK

About LetterLock

LetterLock is a trivia board game for two teams. It takes the letter-on-a-hex idea that many people remember from TV quiz shows and rebuilds it on a fair board: the rhombus of the classic game Hex, where both teams have paths of exactly the same length and a game can never end in a draw. Knowing the answer is only half the game; the other half is where you choose to play.

Why we built it

The letter-hex quiz is a brilliant party format, but the board it is usually played on has a flaw: it is not a true Hex rhombus, so one side has a shorter path to cover than the other. That is a small quirk on television and a real unfairness at a game night where the same friends play again and again. We wanted a version that is fair to both teams, that runs on whatever screen is in the room, and that lets the host read questions and keep score without pen and paper.

So we started from the board. The Hex rhombus gives both teams the same distance to cross and guarantees that every game has a winner. On top of it we built the quiz: every hex carries a letter, every question has an answer that starts with that letter, and a missed question gives the other team a chance to steal. The result plays like a quiz night and thinks like a board game.

Who makes it

LetterLock is made by RAL SOFTWARE SERVICES (trading as RAL Technologies), a small software studio in the Kingdom of Bahrain. We design and build everything in house: the rules engine, the question packs, the website, the apps and the servers they run on. There is a longer write-up of the project on our studio site: the LetterLock case study.

How the game engine works

The rules live in a small, self-contained piece of code that knows nothing about screens or buttons. It holds the board, the teams, whose turn it is and who owns each hex, and nothing else. Every action in a game, such as a pick, a claim, a steal, a skip or an undo, is recorded as an event in a log that is only ever added to. The current state of the game is rebuilt from that log, which is what makes Undo exact and lets a saved game resume exactly where it stopped.

Win detection is the part that must never be wrong, so it gets the most care. After every claim the engine joins the new hex with the team's neighbouring hexes in a union-find structure (a fast way of tracking which hexes belong to the same chain), with two virtual nodes standing for the team's two edges. The moment those two nodes join, the team has won. The tests check this fast method against a deliberately simple flood fill, which walks from one edge through the team's hexes to see whether it reaches the other, across large numbers of randomly filled boards. The two methods must always agree.

Fair by design

How the questions are written

Every pack is written for LetterLock, with each answer starting with a specific letter so that any hex can serve a question. Packs are checked by script for duplicates, wrong letters and answers that leak into the question, and a separate reviewer fact-checks a sample of every pack before it ships. Arabic packs are written natively in Arabic rather than translated, and play with Arabic letters on the board. Today there are 193 packs and 42,733 questions, from Kids & Family and Easy packs to the Genius tier, plus flags, maps, logos, film, music and charades. The full list is in the Packs guide.

Spotted a wrong answer? Tell us at info@raltech.dev and we will fix it.

How we test it

Before any change reaches players it passes an automated gate: type checks, unit tests for the rules engine, content tests over every pack, an end-to-end suite that plays real games in a browser, and a layout check across a range of phones, tablets, laptops and TVs to make sure no screen ever needs scrolling or hides a control. Game updates then reach the installed apps over the air, so a fix does not have to wait for a store release.

Where to play

You can play as a guest without signing up. A free account (email code, Google or Apple sign-in) adds XP and levels, friends, leaderboards, saved games and the pack editor.

Contact

RAL SOFTWARE SERVICES, Kingdom of Bahrain
Email: info@raltech.dev
Website: raltech.dev

Read our Privacy Policy and Terms.

Play LetterLock free