Test your vocabulary under pressure with random letters, a 60‑second timer, and real‑time API validation. Built with pure HTML, CSS, and JavaScript – no external dependencies, just hot‑seat fun!
LettR is a turn‑based local multiplayer game where two players compete head‑to‑head (on the same device). Each round, both players receive a different random letter. They must each come up with a Name, Place, Movie, and Thing that start with that letter.
- Name, Place, Movie are accepted if they begin with the correct letter (minimum 2 characters).
- Thing is validated via the Free Dictionary API – it must be a real English word.
Complete all four fields correctly to score 1 point. If both players score in the same round, the faster one earns an extra +1 Speed Bonus. The game lasts 5 rounds – the player with the highest total points wins!
https://swarup113.github.io/LettR/
| Feature | Description |
|---|---|
| Random Letters | Different letter for each player every round. |
| 60‑Second Timer | Submit before time runs out. |
| Real‑Time Validation | “Thing” entries checked against a live dictionary API. |
| Speed Bonus | Extra point for the quicker player when both score. |
| Hot‑Seat Multiplayer | Pass the device between turns. |
| Fully Responsive | Clean UI that adapts to any screen size. |
| Neon / Futuristic Design | Gradient orbs, glass‑morphism, and smooth animations. |
| Round Results & Game Over | Detailed stats screens for each round and the final result. |
| Step | Action |
|---|---|
| 1 | Enter optional player names (or leave as “Player 1” / “Player 2”). |
| 2 | Start the game – a random letter is generated for Player 1. |
| 3 | Player 1’s turn – fill in Name, Place, Movie, and Thing that start with the given letter. |
| 4 | Submit – if all fields are valid, you score 1 point. |
| 5 | Pass the device – Player 2 gets their own random letter and repeats the process. |
| 6 | Round end – if both scored, the faster player receives +1 Speed Bonus. |
| 7 | Repeat for 5 rounds. The player with the highest total points wins! |
Validation Rules
| Category | Requirement |
|---|---|
| Name / Place / Movie | Must begin with the letter, minimum 2 characters. |
| Thing | Must be a real English word (checked via Free Dictionary API). |
Note: Each turn has a 60‑second countdown. If time runs out, that player scores 0 for the round.
| Technology | Purpose |
|---|---|
| HTML5 | Semantic markup, modal dialogs, forms. |
| CSS3 | Flexbox, Grid, custom properties, keyframe animations. |
| JavaScript (ES6) | Game state management, timer logic, API integration. |
| Free Dictionary API | Word validation for “Thing” entries (https://api.dictionaryapi.dev/api/v2/entries/en/<word>). |
| Google Fonts | Orbitron (headings), Space Grotesk (body). |
MIT License.