About

Return home

Game rules

How to play

At the start of the game, each player chooses two secret words. Players gain points by successfully guessing parts of their opponents' secret words. Once all of a player's secret words are guessed, that player is eliminated and can no longer gain points. When there is at most one player remaining, the player with the highest score wins.

Worth of Words is played over a series of rounds. In each round, every remaining player is randomly assigned three opponents as “targets.” Simultaneously, each player chooses a single guess which will attempt to match against the current secret words of all three of their targets. (If there aren't enough players left to have three targets, then each player targets all remaining opponents instead.)

After all players have made guesses, all matches are revealed in the style of Wordle. Letters in the guess which are in the correct position in the secret word are marked green, while letters in the guess which are in the secret word but at a different position are marked yellow. Players are awarded points based on how good their guesses were, and play proceeds to the next round.

All guesses made by any player and the resulting matches are public.

Scoring

A guess earns points by revealing new information.

  • A green match earns points if it is in a position which has not yet had a green match. Each new green match is worth 5 points.
  • A yellow match earns points if it reveals that there are more instances of a given letter than were previously known. For example, if previous guesses indicated that the letter D appears in the word at least once and the new guess has two D's marked yellow, then points would be awarded for a single new yellow. Each new yellow match is worth 2 points.

Further, a guess that correctly guesses a full word earns an additional 10 points.

What words are valid?

Worth of Words uses the same word lists as standard Wordle. Like in Wordle, the list of words which can be used as a secret is much smaller than the list of words which can be used as a guess. The word lists are available here: allowed secrets, allowed guesses.

Is there a maximum number of players?

No! Any number of players can join the same game, and the game length should not be significantly longer with more players.

Implementation

Worth of Words is fully decentralized and trustless. All in-game actions and all communication between players occur via the blockchain.

Modular Accounts

Behind the scenes, each player is given a Modular Account, a smart contract account developed by Alchemy that allows developers and users to customize their account features using plugins.

Worth of Words's accounts use a session key plugin to create frontend session keys, so users can securely take many on-chain actions throughout a game without clicking through a security prompt each time.

Gas Manager

Although gameplay takes place fully on-chain, players are never required to spend their own money to pay for transactions. This is possible through Alchemy's Gas Manager, a smart contract that allows Worth of Words to sponsor users so they play without using their own money to put actions on the blockchain.

Embedded Accounts

Modular Accounts and the Gas Manager are both part of Embedded Accounts, Alchemy's framework for building applications with simple non-custodial accounts. In addition to the above, Worth of Words also uses Embedded Accounts' aa-sdk for working with smart accounts and its Bundler API for submitting operations to the blockchain.

Zero-knowledge proofs

Data written to the blockchain is completely public, which is a challenge for a game based on hidden information. To avoid leaking everyone's secret words, Worth of Words uses zero-knowledge proofs to allow players to prove that they are playing correctly without revealing their secrets. Zero-knowledge proofs are used in two places:

  • When a player chooses their secret words when joining a lobby, they must prove that the words they have chosen are real English words, and not just random letters.
  • Once players have made their guesses, each player must reveal the color matches for the guesses made against them, and must prove they are telling the truth about which colors are where.

The ZK-circuits are written in Circom with proof generation and verification from SnarkJS.

Deployed contracts

License

Worth of Words is licensed under GPL-3.0. The source code is available on GitHub.

“Wordle” is a registered trademark of The New York Times Company. Worth of Words is not affiliated with or sponsored by The New York Times Company in any way.

Copyright © 2024 David Philipson

Return home