NOVINKA - Online rekvalifikační kurz Python programátor. Oblíbená a studenty ověřená rekvalifikace - nyní i online.
Hledáme nové posily do ITnetwork týmu. Podívej se na volné pozice a přidej se do nejagilnější firmy na trhu - Více informací.

hangman.h

C# .NET

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <sys/stat.h>

/**
 * Definuje dve konstanty
 * WORDLIST_FILENAME - nazov suboru, ktory obsahuje tajne hesla
 * MAXSTEPS - maximalny pocet krokov hadania
 */
#define WORDLIST_FILENAME "words.txt"
#define MAXSTEPS 8

int is_word_guessed(const char secret[], const char letters_guessed[]);
void update_guessed_word(const char secret[], const char letters_guessed[], char guessed_word[]);
void get_available_letters(const char letters_guessed[], char available_letters[]);

void hangman(const char secret[]);
int get_word(char secret[]);

Neformátovaný

Přidáno: 24.11.2022
Expirace: Neuvedeno

Avatar
Autor: Lubo Cerebla
Aktivity