Serenity and Cucumber Quick Start
Home > Requirements > Wordle rules > Game rules
Report generated 12-03-2024 07:14

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: 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

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

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 7 Total Duration 336ms
Total Number of Test Cases 11 Fastest Test 7ms
Number of Manual Test Cases 0 Slowest Test 196ms
Tests Started Mar 12, 2024 07:14:17 Average Execution Time 50ms
Tests Finished Mar 12, 2024 07:14:18 Total Execution Time 622ms

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Game Rules Player runs out of tries 3 07:14:17 196ms SUCCESS
Game Rules Letters should be displayed with the correct color
3 passing test cases
3 07:14:18 271ms SUCCESS
Game Rules Letters that are present but not in the right place 3 07:14:18 012ms SUCCESS
Game Rules Player guesses the right word 4 07:14:18 028ms SUCCESS
Game Rules Letters that do not form valid words should be rejected
3 passing test cases
3 07:14:18 093ms SUCCESS
Game Rules Correctly placed letters 3 07:14:18 007ms SUCCESS
Game Rules Two incorrectly placed letters 3 07:14:18 015ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.1.3