-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwordle.h
25 lines (21 loc) · 1002 Bytes
/
wordle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// wordle.h - Header file for Wordle game functions
#ifndef WORDLE_H
#define WORDLE_H
#include <stdio.h> // Standard input/output definitions
#include <stdlib.h> // Standard library functions
#include <string.h> // String handling functions
#include <time.h> // Time and date functions
#include <stdbool.h> // Boolean type and values
/*void fill_results_in_array(char array[5][5], const char* result, int count);
// Function to read a word from a file by its index
// file_path: path to the word list file
// word_index: index of the word in the file (zero-indexed)
// returns: a pointer to the word read from the file
char* read_word_from_file(const char* file_path, int word_index);
// Function to compare two words and generate feedback
// target: the correct word to guess
// guess: the word guessed by the player
// returns: a string with feedback for each character ('G', 'Y', 'R')
char* compare_words(const char* target, const char* guess);
*/
#endif // WORDLE_H