Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have to do a project for Java where I have to create a hangman game user vs. computer. I just wanted to know what

I have to do a project for Java where I have to create a hangman game user vs. computer. I just wanted to know what topics I would have to master to create this game. i dont want a coding answer as I want to learn how to do it. thank you in advance.

image text in transcribed

image text in transcribed

For this project, your goal is to write a program that allows the user to play a two-player game that goes as follows: The two players of the game are * o Computer (the program) o User Computer picks a random word Computer asks User to guess what word it picked. The User should be informed about the number of letters in the word (either by printing distinct underscore characters for each letter or by just informing them of the word length) The User is given the following two options o Guess one letter in the word O Guess the whole word If the User guesses a letter correctly, the Computer must reveal where in the word that letter appears (if it appears more than once, all of the occurrences of that letter must be revealed) The user wins the game if they guess the whole word correctly (either by guessing the whole word at once or by guessing all the letters successfully) The user loses the game if they make 5 unsuccessful attempts at guessing (either the whole word or single letters) You are allowed to get creative in this project. A working implementation of the game will receive full credit. Here are some considerations for the implementation to be considered "working": The game must be playable from start to end (this is hopefully obvious) Prompts for user input must be clear in what they ask Prompts displaying the current state of the game must indicate to the user which letters have been revealed and how many attempts the user has remaining There must be a collection of words for the Computer to randomly choose from (even if hardcoded); the Computer must choose the words randomly (e.g. using class Random) Additional (relevant) functionality will earn extra credit. Examples of additional functionality: * An option for the user to save/load an existing game to a file An option for the user to customize the number of allowed unsuccessful attempts An option for the user to add words to the Graphical enhancements to the game (colorized and/or formatted terminal output or even a graphical user interface _ don't go too far with this)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

How would you have defined psychology before taking this class?

Answered: 1 week ago

Question

=+5 Does this case provide an example of the future for IHRM?

Answered: 1 week ago

Question

=+4 How did it affect HR?

Answered: 1 week ago