Develop a word-guessing game

Assignment Help Web Project
Reference no: EM13813201

Develop a word-guessing game, like Hangman. The game will have two users, Person A and Person B. While B isn't looking, Person A will input a word up to a specified appropriate maximum length. The word that has been input should contain only letters - no punctuation, numerals or other special characters. If the word is invalid for some reason, the program should require A to input the word again until a valid input is received. The program should not be sensitive to case when receiving input and making comparisons. Once the word has been successfully input, the program can clear the screen by printing a large number of blank lines.

Person B then has up to 10 turns in order to guess the word and win the game. At the start of each turn, the program will display a series of underscores on the screen, one for each letter in the word. Initially, no letters will have been guessed, so each letter in the word will be printed only as an underscore.

During each turn, B can either guess a letter or solve the puzzle. If they choose to solve the puzzle at any point, correctly guessing the word will lead to them winning the game. However, if they solve the puzzle incorrectly, they will immediately lose and the game will end. They will also lose if they run out of turns.

If B chooses to guess a letter during their turn, the program will inform them of how many of this letter occur within the secret word. The program will then begin their next turn, if they still have turns remaining. The program should warn B when they are on their last (10th) turn.

If B runs out of turns without guessing the word, then they will have lost and the program will display what the word was and then exit.

Reference no: EM13813201

Questions Cloud

Concept of federalism to shape american political behavior : Examine three to five factors that have allowed the concept of federalism to shape American political behavior
Describe a political behavior you have observed : Describe a political behavior you have observed. What caused the political behavior? How did it influence the organization in a positive or negative way? At least 200 words
What is the social problem the researchers are investigating : What is the social problem the researchers are investigating.
Analyze the pre-implementation and design strategies : Analyze four policy choices of Mayor Schell that were made as part of the strategy for the homeless. Analyze the Pre-Implementation and Design Strategies of Mayor Schell and interpret four practical outcomes of his choices.
Develop a word-guessing game : Develop a word-guessing game, like Hangman. The game will have two users, Person A and Person B. While B isn't looking, Person A will input a word up to a specified appropriate maximum length. The word that has been input should contain only lette..
Are dividends relevant in determining share values : Are dividends relevant in determining share values? Identify one factor that indicates they are, and one that indicates they are not. Give your opinion on this question and why you hold it.
Write an essay about human trafficking in russia : Write an essay about human trafficking in Russia.
Personal opinion on relevance to explain overall corporate : Select one of the following theories and provide an argument about why it might hold and why it might not. Once you have done this, give your personal opinion on its relevance to explaining overall corporate dividend behavior. Residual theory of divi..
Unclear evaluation criteria defined within them : What percentage of BPO contracts do you think have weak or unclear evaluation criteria defined within them? What steps will you take to ensure that your performance measures are not weak?

Reviews

Write a Review

Web Project Questions & Answers

  Explain how the web user interfaces help donors

Explain how the Web user interfaces help donors to make decisions. Relate the emotional thread demonstrated in the case study to the emotional design model

  Create a home page using html

To create a simple web page you will need to use a text processor (Notepad) and HTML (hypertext markup language). Do NOT use Word which can create some problems by automatically formatting your work as a web page.

  Database normalization refers to the process of organizing

Database normalization refers to the process of organizing the fields and tables of a relational database to minimize redundancy. It usually involves dividing large tables into smaller ones which are less redundant and defining the relationships b..

  Define the web-based risks that led to the attack

Describe the virus and how it propagated itself onto servers over the Web based on the actual information provided. Assess the Web-based risks that led to the attack.

  Insert an xml prolog at the top of the file

Go to the gargoyle.htm file in your text editor, and then insert an XML prolog at the top of the file. Use the standard attribute defaults for an XHTML file.

  Define the process of creating and maintaining a website

The process of creating and maintaining a website typically involves both development and production environments. What is one reason for maintaining the two separate environments and the purpose of each

  Question about forensic investigation

Prepaid cell phones make forensic investigation much hard. Explain how can you speedily investigate and collect digital evidence for a crime what involves a phone call.

  Describes functionality of application and the justification

The Design Report is a single team report that describes the functionality of the application in its final form. You should include descriptions of all of your functions and sketch the storyboard associated with each function.

  Define website content requirements

Although you will learn that Content Inventory and Categorisation and Labelling are part of the design phase, this work has already been partially done for you. Below you will find some of the content identification for the webpagesthat you are to..

  The webp image format is utilized by chrome

the WebP image format is utilized by Chrome. What is the significance, if any, of this particular image file format. Do you see it taking off as being more of a standard in the future. Why or why not

  Explain how you will evaluate the performance of new site

Discuss the support operations that the internally hosted Website will require after implementation. Explain how you will evaluate the performance of the new site and the success of your project

  Creating html frames in dreamweaver

Required help me with frames. I am using dreamweaver, and have been trying to create frames. However, I noticed that what happens is say create a web page called index.html with frames in it.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd