Serenity and Cucumber Quick Start
Home > Requirements > Wordle rules > Game rules
Report generated 08-01-2026 10:13

Feature: Game rules

The rules of Wordle are simple. Your objective is to guess a secret five-letter word in as few guesses as possible.
To submit a guess, type any five-letter word and press enter.
All of your guesses must be real words, according to a dictionary of five-letter words that Wordle allows as guesses.

Players have to guess a five-letter word.

  • Correctly placed letters are shown as GREEN
  • Incorrectly placed letters are shown as YELLOW
  • Letters not appearing in the word are represented as GRAY

Scenarios

Rule: The player wins when they find the right word in 6 or less tries

Given the target word is:

BLAND

When the player enters the following letters:

BEAST
BRAIN
PLAIN
PLANE
PLANT
PLANK

Then the player should lose the game

Given the target word is:

BLAND

When the player enters the following letters:

BEAST
BRAIN
BLAND

Then the squares should be colored as follows:

GREENGRAYGREENGRAYGRAY
GREENGRAYGREENGRAYYELLOW
GREENGREENGREENGREENGREEN

And the player should win the game

Rule: Correctly placed letters appear in green

Given the target word is "{target word}"

When the player plays "{player input}"

Then the squares should be colored as follows:

{cell 1}{cell 2}{cell 3}{cell 4}{cell 5}

Given the target word is:

BLAND

When the player enters the following letters:

PRINT

Then the squares should be colored as follows:

GRAYGRAYGRAYGREENGRAY

Rule: Repeated letters in the wrong spot appear in grey

Given the target word is:

BLAND

When the player attempts to enter the following letters:

{Letter 1}{Letter 2}{Letter 3}{Letter 4}{Letter 5}

Then the attempt should be rejected

Given the target word is:

BLAND

When the player enters the following letters:

LABEL

Then the squares should be colored as follows:

YELLOWYELLOWYELLOWGRAYGRAY

Rule: Incorrectly placed letters appear in yellow

Given the target word is:

BLAND

When the player enters the following letters:

BRAIN

Then the squares should be colored as follows:

GREENGRAYGREENGRAYYELLOW

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 7 Total Duration 349ms
Total Number of Test Cases 11 Fastest Test 17ms
Number of Manual Test Cases 0 Slowest Test 178ms
Tests Started Jan 08, 2026 10:13:28 Average Execution Time 44ms
Tests Finished Jan 08, 2026 10:13:28 Total Execution Time 516ms

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Game Rules Player runs out of tries 3 10:13:28 178ms SUCCESS
Game Rules Letters should be displayed with the correct color
3 passing test cases
3 10:13:28 112ms SUCCESS
Game Rules Player guesses the right word 4 10:13:28 025ms SUCCESS
Game Rules Correctly placed letters 3 10:13:28 046ms SUCCESS
Game Rules Letters that do not form valid words should be rejected
3 passing test cases
3 10:13:28 108ms SUCCESS
Game Rules Letters that are present but not in the right place 3 10:13:28 024ms SUCCESS
Game Rules Two incorrectly placed letters 3 10:13:28 023ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 5.0.4