Code Monkey home page Code Monkey logo

word-guessing-game's Introduction

The project can be used in many ways some of them are listed below

  • to increase the vocabulary
  • to sharpen the mind and skills
  • as a time pass

The project contain following technical details

  • A class ‘word_guess_game’ that captures the following data members and functions

    • char array[8][12]; /* memory array that stores 8 words of max 12 characters */
    • int read_count; /* counts the number of words read */
    • ifstream inputFile; /* input file stream pointer */
    • word_guess_game(); - /* constructor that initializes read_count */
    • void rdf(char file); / function that reads the data in memory ‘array’ from a file */
    • void start_text(); /* prints the starting text to prompt user to play the game */
  • This is a very basic game and has following limitations

    • The word must be less than or equal to 12 characters
    • No blank lines permitted in the input file
    • for now the name of the input file is fixed as "input.txt"
    • maximum number of words supported is 8
    • all the characters that you guess in the word must be entered in capital letters
  • Screen output is given to allow user to enter the option for playing or exit the game

  • Once user start the playing part the word is shown hidden by the character ‘*’ with number of characters in the word guess

  • User presses the characters and if that character exists in the word then its place is updated by that character

  • The number of characters in the word is the binding limit of entering the characters

  • At the end the word is shown and your score of how many characters in the word you guessed right is also shown

  • The number of attempts a person can play this game has been fixed at 5 as of now

word-guessing-game's People

Contributors

yatingupta10 avatar

Stargazers

Sarsiz Chauhan avatar Aditya avatar

Watchers

James Cloos avatar  avatar

Forkers

deadlyzero

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.