Skip to content

A Game Built via C and C++ Programming Language ; One Have to Phrase the Words Under Certain Constraints which Checks The Sharpness and Recall Memory Of Person.

Notifications You must be signed in to change notification settings

giruu/Word-Game-in-C-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Word Game Program

This C++ program implements a word game where players can play in single-player or multiplayer mode. It includes features like checking if entered words are correct based on a dictionary file, keeping track of scores, and providing options for help and about the game.

Usage To use this program, you need a C++ compiler that supports the standard libraries used in the code. Here's an example of how you can use the program:

Include the necessary header files:

git clone https://github.com/giruu/Word-Game-in-C-plus.git

Navigate to the cloned directory:

cd Host-Up-Alert
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
#include<iomanip.h>
#include<fstream.h>

Compile and run the program using your C++ compiler.

Code Analysis

  • Inputs
  • User input for various options in the game, such as choosing single-player or multiplayer mode, entering words, and selecting options from the menu.
  • The program reads data from a dictionary file called dic.txt.

Flow

  • The program starts by displaying a menu with different options for the game.
  • The user can choose between single-player mode, multiplayer mode, help mode, about mode, or quit the game.
  • In single-player mode, the user can play the game by entering words and checking if they are correct based on the dictionary file.
  • In multiplayer mode, the user can choose between time battle or the number of players. In time battle, the user has 10 chances to enter words. In the number of players mode, the user can enter words and take turns with another player.
  • The program keeps track of scores and provides options to go back to the main menu or quit the game.

Outputs

  • The program displays various messages and prompts to guide the user through the game.
  • It also displays the correct word and the points earned by the player.
  • The program can write user suggestions to a file called suggest.txt.
  • In multiplayer mode, the program indicates which player's turn it is. Feel free to customize this README.md with additional information or formatting based on your preferences or specific requirements.

About

A Game Built via C and C++ Programming Language ; One Have to Phrase the Words Under Certain Constraints which Checks The Sharpness and Recall Memory Of Person.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages