Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CAN SOMEONE PLEASE HELO WITH THIS PROJECT. Using C CODE. THANK YOU! Project Description: In this project, we will implement a word puzzle game: WORDLE.

CAN SOMEONE PLEASE HELO WITH THIS PROJECT.
Using C CODE. THANK YOU!
Project Description: In this project, we will implement a word puzzle game: WORDLE. The program will read from a text file containing a list of 500 5-letter words (puzzle.txt is provided) and randomly choose a word from the list (char word[6]). In this game, you have to guess the 5-letter word (char guess[6]) up to 6 tries. Each time, if the letters are in the word and placed correctly, they get highlighted in green. If the letters you guess are in the word but in the wrong position, they are highlighted in yellow. Gray-highlighted letters mean they don't appear in the word. The game ends either if the user guess the word correctly or reaches 6 tries. Here is the link of WORDLE game site: https://www.powerlanguage.co.uk/wordle/
To create a random number between 0 to 499:
srand(time(NULL)); //create a random seed
index = rand()%500; //create a random number between 0 to 499
for (i = 0; i
You need to include and libraries for the above functions.
To display the text in different colors:
#define RESET "\e[0m"
#define GRAY "\e[1;30m"
#define GREEN "\e[1;32m"
#define YELLOW "\e[1;33m"
printf(GREEN); //set text color to bold green printf("W"); //display W in bold green printf(RESET); //set text color to default
printf(YELLOW); //set text color to bold yellow printf("O"); //display O in bold yellow printf(RESET); //set text color to default
printf(GRAY); //set text color to bold gray printf("R"); //display R in bold gray printf(RESET); //set text color to default
image text in transcribed
Enter your 5 letter word: laser L A S ER Enter your 5 letter word: sleek S L E E K Enter your 5 letter word: sleep S L E E P [lxiang@tpaclinux1v wordle]\$ [lxiang@tpaclinux1v wordle]\$ ./main.exe Enter your 5 letter word: laser L A S E R Enter your 5 letter word: blink B L I N K Enter your 5 letter word: build B U I L D [lxiang@tpaclinuxiv wordle]\$

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

8. Demonstrate aspects of assessing group performance

Answered: 1 week ago