Games & fun

Build a daily word puzzle game for your group chat

A daily five-letter word game build brief: everyone gets the same word each day, six guesses, coloured hints, a streak and a spoiler-free result grid to paste in the group chat.

Apirex TeamUpdated WebAndroidiOS
On this page
  1. Screens
  2. Data model
  3. Native features
  4. Android notes (Kotlin and Jetpack Compose)
  5. iPhone notes (Swift and SwiftUI)
  6. Web notes (best fit)
  7. Copy-paste prompt
  8. Acceptance test
  9. Frequently asked questions
5screens
4data tables
175word prompt
3platforms: Web, Android, iOS

Some group chats run on one ritual: everyone solves the same little word puzzle each morning and posts their coloured squares before breakfast. This brief builds your own version with your own word list, your own name and maybe an inside-joke theme week. One five-letter word per day, the same for everyone, six guesses, letters that turn green, yellow or grey, a streak and a share button that posts the pattern without giving the word away. The best fit is a web app, because a link in the chat is all anyone needs. Android and iPhone versions work too, and the iPhone build needs a Mac with Xcode. The first proof: two phones on the same day get the same word and identical hint colours for the same guess.

Screens

  • Board: Six rows of five tiles, filling as you type, with a flip reveal after each guess.
  • Keyboard: An on-screen keyboard whose keys take on the best colour found so far.
  • Result: Solved in four, the streak, and a Share button that copies the coloured grid.
  • Stats: Games played, win rate, current and best streak and a guess-count chart.
  • How to play: Three example tiles that explain the colours in ten seconds.

Data model

Puzzle data kept on the device
TableKey fieldsPurpose
word_listday_index (int), answer (text)The owner's own list of answers in a fixed order, shipped with the app.
valid_guessesword (text)A larger list of accepted guesses, so random letter strings are rejected.
gamesday_index (int), guesses (text[]), status (text), finished_at (timestamptz)Today's progress, saved after every guess so a refresh never resets it.
statsid (int), played (int), wins (int), current_streak (int), best_streak (int), distribution (int[])Totals for the Stats screen, updated once per finished day.

No server is needed for the daily word. Work out the day index from a fixed start date in the player's local calendar, then pick that position from the shipped word list, so every phone lands on the same answer without asking anyone. Save games and stats in localStorage on the web, or Room and SwiftData natively. Write or license the word lists yourself; do not copy another game's published list. A friends leaderboard is optional, and if you add one, connect your own Supabase and store only results, never the answer.

Native features

The scoring rule needs one careful detail: repeated letters. If the answer has one E and the guess has two, only one E may turn green or yellow, and the other must be grey. Mark exact matches first, then count the remaining letters for yellows. Getting this right is what makes players trust the game, and it is the first thing a word-puzzle fan will test.

FeatureAndroid (Kotlin)iPhone (SwiftUI)Notes
Daily wordLocalDate days since a start dateCalendar dateComponents days since a start dateOn web, compute from the local date, not UTC, so midnight matches the player's clock.
Flip and shakeCompose graphicsLayer rotationX and an offset shakerotation3DEffect and a keyframe shakeRespect reduced motion by swapping flips for a fade.
Sharing the gridShare sheet with emoji textShareLink with emoji textOn web, the Web Share API with a clipboard fallback.
StreakDataStore or Room stats rowSwiftData stats modelOnly a finished game on consecutive days continues the streak.

Android notes (Kotlin and Jetpack Compose)

Represent each guess as a list of tile states computed by one pure scoring function, and unit test it with tricky pairs such as ABBEY against BABES. The Compose board then just draws states, which keeps animation code away from game logic.

  • Read physical keyboard input as well as the on-screen keys, ignore input while a row is flipping, and shake the row with a short message when a guess is not in valid_guesses.
  • Save the game after every accepted guess and restore it on launch; if the stored day_index is not today, start a fresh board and keep yesterday in the stats.
  • On a real phone, play today's puzzle, kill the app after the third guess and reopen it; the board must show the same three rows. Then change the date forward a day and confirm a new word with the streak intact.

iPhone notes (Swift and SwiftUI)

On iPhone, a LazyVGrid of tiles with a flip animation per tile and a custom keyboard view make the board. Store the game in SwiftData and recompute the day index whenever the app returns to the foreground after midnight.

  • Use a staggered animation so tiles flip one after another, and announce each tile's letter and colour through accessibility labels so VoiceOver users can play.
  • Build the share text as a header like Puzzle 41 4/6 followed by rows of coloured square emoji, with no letters, and pass it to ShareLink.
  • Test on an iPhone with the largest Dynamic Type size and a small screen; the board and keyboard must both fit without hiding the Enter key.

Web notes (best fit)

As a React and Vite web app, the whole game is static files, so it loads fast from a link and can work offline after the first visit. Keep the answer list out of plain sight by shipping it as encoded data rather than a readable array, accepting that a determined player can still dig it out.

  • Listen for keydown on the document for laptop players and make the on-screen keys large enough for thumbs, with Enter and Backspace on opposite sides.
  • Store the game in localStorage under the day index, and show a gentle message when storage is blocked instead of breaking the board.

Copy-paste prompt

Build this yourself 175 words · Web
My group chat needs its own daily word game with our own words. Build a five-letter word puzzle, best as a web app I can share as a link, ready for Android or iPhone later. Everyone gets the same word each day, picked from my own word list by the date, with no server. Six guesses; tiles turn green for the right spot, yellow for the wrong spot and grey if the letter is not there, and handle repeated letters correctly. Reject words that are not in my valid guess list with a little shake. Add an on-screen keyboard that colours keys, a flip animation, a Result screen with the streak, a Stats screen and a short How to play. The Share button copies a grid of coloured squares with the puzzle number and score but never the word. Save progress after every guess so a refresh keeps my board. Use an original name and look. Acceptance: two phones on the same day get the same word and the same colours for the same guess.

Opens Apirex with this prompt in the box. Pick the Web tab before you send.

Acceptance test

  1. Open the game on two phones on the same date and enter the same first guess; the tile colours must match exactly.
  2. Guess a word with a repeated letter against an answer that has that letter once, and confirm only one tile is coloured for it.
  3. Type a made-up word and confirm it is rejected with a shake and no guess is used up.
  4. Refresh or close the app mid-game and confirm every earlier guess is still on the board.
  5. Finish the puzzle, tap Share and paste the result in a chat; confirm the grid shows colours and the score but no letters.

Check the calendar edge too. Play just before midnight, then again just after, and confirm the new day brings a new word and the streak continues. Skip a day entirely and confirm the streak resets to zero instead of quietly carrying on, so the bragging rights in the group stay honest.

Frequently asked questions

Can I use the name of a famous word game?

No. Pick your own name, colours and look. A five-letter guessing game is a common idea, but brand names and their published word lists belong to their owners, so this brief keeps everything original.

How does everyone get the same word without a server?

Each device counts the days since a fixed start date and picks that position from the same word list shipped with the app. Same date, same list, same word.

Can we have a group leaderboard?

Yes, as an optional extra. Connect your own Supabase, save each player's daily result, not the answer, and use row-level security so friends can read scores but only edit their own.

Build this blueprint

The blueprint prompt, ready for your platform. Edit anything before you send it.

WebReact + ViteReal source on your computer

Opens Apirex with this prompt. Pick the Web tab before you send. The Free plan includes 5 Rex Credits a day.