Content Deep Dive
Build a Wordle-like SMS game with Twilio Serverless
Blog post from Twilio
Post Details
Company
Date Published
Author
Lizzie Siegle
Word Count
2,445
Language
English
Hacker News Points
-
Source URL
Summary
The article describes how to build an SMS-based version of the popular word game Wordle using Twilio's Serverless Toolkit, Twilio Assets, and the Dictionary API. The project involves creating a Twilio Function that responds to incoming text messages, generates random words from a dictionary, and scores player guesses based on their proximity to the goal word. The function also handles game over conditions and provides feedback to players. The code is written in JavaScript and utilizes Node.js, got, and Twilio's Serverless Toolkit for deployment. The final product allows users to play Wordle by texting a 5-letter word or "?" to a designated Twilio number, with the game state stored using cookies.