WordWars
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
A real-time multiplayer word game where players compete to spot words from a shared pool of letter tiles.
- Two players join the game by entering a game ID and their name
- A pool of 30 letter tiles starts face down in the center
- Players take turns flipping tiles to reveal letters
- When you spot a word using the revealed letters, select the tiles and submit the word
- If you're first to submit a valid word, you claim those letters and score points
- The game continues until all tiles are flipped or no more words can be made
- Player with the highest score wins!
backend/
- Hono API server with REST endpoints for game actionsfrontend/
- React-based game interface with polling for updatesshared/
- Shared types and utilities
- ✅ Turn-based tile flipping
- ✅ Word validation (3+ letters)
- ✅ Live scoring with Scrabble-like point values
- ✅ Game state synchronization via polling
- ✅ Responsive design with TailwindCSS
- ✅ Visual feedback for tile selection and game state
POST /api/games/{gameId}/join
- Join a gameGET /api/games/{gameId}
- Get current game statePOST /api/games/{gameId}/flip
- Flip a tile (must be your turn)POST /api/games/{gameId}/claim
- Claim a word using selected tiles
- Backend: Hono with REST API
- Frontend: React with polling updates
- Storage: In-memory (games reset on server restart)
- Styling: TailwindCSS
- Visit the game URL
- Enter a game ID (any string, e.g., "room1")
- Enter your player name
- Share the game ID with a friend
- Start playing when both players have joined!