Wordle Game Project

This project is for the assessment of the Web cluster of ICTPRO302.

What is the proeject?

This project was to develop a text-based wordle game.

An incompleted code was provided as a start point and guide of this project.

In addtion, test cases had to be set and run by using doctest.

What is the wordle game?

The worlde game is a word guessing game by using hints.

The answer word is randomly selected from a word list and is not revealed until the end of the game.

The player is provided with hints which compares alphabets of the input word and the answer word.

Hints showed alphabets used in both the input and answer words as well as whether the alphabets are in the same position.

wordle_hint

What is the key logic?

The key logic for the success of this project is score guess.

The score guess is the algorithm to score the player's guess.

The player is provided with hints which compares each alphabet of the input word and the answer word.

The critical part in this logic is how to handle conflicts: right letters with right position VS with wrong position.

For making this logic, a dictionary is created by counting chars in the target word.

The dictionary is utilised to score each alphabet of the input word.

Project Result: Text-based Wordle

wordle_play