Please enable JavaScript to use CodeHS

  • Autograded

Word Game

In this project, students build their own console version of the NYT Wordle game with control structures and arrays.

Medium

5 Hours

High School

Project Description

Background

The NYT’s game Wordle quickly became one of the most popular online word guessing games in early 2022. The game play is fairly simple, where players try to guess a secret 5-letter word, receiving feedback each guess about whether letters in their guess match the solution letters in value and/or position.

Here is a screenshot of five guesses, where green letters are correct in value and position, and yellow letters are correct in value but incorrect in position:


Your Task

In this project, you are going to create your own console version of the game! It won’t have the colored graphic squares, like the original has, but you’ll use upper and lower case letters to help communicate information to the player.