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

  About project specification

E-R diagram: adherence to our standard, assumptions made, inclusion of correct primary

  Comparing email and email protocols

Discuss similarities and differences of the following email clients: Outlook, Outlook Express, Hotmail, Eudora, Mozilla Thunderbird, Opera Mail, Pine, and Lotus Notes.

  Make a web page about favorite characters

The web page doesn't really have to be personal but the content should be similar to an online profile of a person. If it's easier you can make a page about one of your favorite characters in a book, movie, video game, or you can make a page for ..

  What is the difference between the client and the server

What is the difference between server-side and client-side scritping? Why are they separate?

  Create a web page using color or an image

Create a web page using color or an image as a background, add an image into the body of text, and then add colors that are compatible to the design. You should also include some "mock" text to your page to show position of text.

  Study and critique an enterprise website

Create a website to present your results. You must critique a website that is different from the rest of the class

  Create a new web application that displays a form

Create a new Web application titled Week8. Next, create a JSP that displays a form when the doGet method is invoked. The form will contain a post action that directs the form post back to the same JSP, which in the doPost method will save the form..

  Explain how a soa would improve patient care

What are some examples of how a SOA would improve patient care

  Improve the website for cse

You need to improve the website for CSE Center for Health Information Technology to make it more functional and informational.

  Create an initial layout for your digital website portfolio

Create an initial layout for your digital website portfolio. Using the skill learned, over the Internet, research about creating a website portfolio. Based on your research and understanding

  Discuss what it will take to build a web architecture

Discuss what it will take to build a Web architecture, move an existing Website with minimal downtime, and provide a disaster recovery solution to ensure the site is always available

  Identify potential security weaknesses

In this phase you will choose either Aircraft Solutions or Quality Web Design as the company you will work with. You will then identify potential security weaknesses

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