Customer Service Chat
Get quote & make Payment
Graphical user interface and arrays, Basic Computer Science
In this program, you are going to write a program for playing the game of Hangman. In this game, the computer will pick a word and display a sequence of blanks to be filled in; one for each letter. The player will make guesses about what letters are in the word. If he/she guesses a letter that appears in the word, the appropriate blanks will be filled in. If the guess is a letter that doesn''t appear in the word, one part will be added to a figure hanging from a scaffold. When the hanging figure is complete (seven bad guesses), the game is lost.
* Write a GUI program
* Implement the ActionListener interface to handle Events
* Use arrays
You are to write the Hangman class (a driver class that creates the main window for this GUI program), HangmanPanel (a JPanel which contains all the components needed to run the program) and any other classes that you need to make this game work.
o Your main class should create a JFrame and put a HangmanPanel in its content pane.
o This class should extend JPanel and contain all the components needed for the user to play the game
+ The user should be able to start a new game and quit the program.
+ You need to provide components to display the letters that are are currently known as well as to allow the user to select a letter from the ones which have not yet been guessed.
+ You need a way to display the current state of the hanged man.
+ You will need at least one Listener class.
o When the game starts, the program should get a word from the WordList class (see below) and initialize the available letters and the blanks to be filled in. The words in this version of the game will all have eight letters in them.
* There should be no console output in this program
* All input to the program should be handled with components. JOptionPane dialogs should not be used for input.
* Handle all appropriate exceptions.
Posted Date: 4/6/2012 8:24:24 PM | Location : United States
Ask an Expert
Graphical user interface and arrays, Assignment Help, Ask Question on Graphical user interface and arrays, Get Answer, Expert's Help, Graphical user interface and arrays Discussions
Write discussion on Graphical user interface and arrays
Your posts are moderated
Write your message here..
Tech ed, can you help me convert binary into decimals?
can you help me convert binary into decimals?
HACKER, Briefly explain who a hacker is and what the activities of a hacker...
Briefly explain who a hacker is and what the activities of a hacker are?k question #Minimum 100 words accepted#
Communications programs , Communications Programs : By communications prog...
Communications Programs : By communications programs, we mean those programs which allow a computer to communicate via a transmission cable to another electronic device. Here we d
Traditional business cycle, what is traditional business cycle
what is traditional business cycle
Explain the protection features of ms access, Question 1 Explain the pr...
Question 1 Explain the protection features of MS Access? 2 What is Query Parameter? 3 What are the steps to be taken for improving performance of Microsoft Access database? 4 W
Spreadsheet to provide a business solution, Gareth's Gardens is a small fir...
Gareth's Gardens is a small firm that specialises in planning and laying new gardens. A particularly popular garden plan consists of a patio and lawn, together with a circular pon
Definition of Internal hardware interruptions, Internal interruptions are...
Internal interruptions are produced by convinced events which come during the execution of a program. These types of interruptions are handled on their totality by the hardware and
Physics, . State laws of transverse vibrations in stretched strings. Explai...
. State laws of transverse vibrations in stretched strings. Explain how do you verify them using sonometer.
Algorithim, product of two numbers
product of two numbers
Graphs, Find the corresponding matrix of the digraph above
Find the corresponding matrix of the digraph above
Accounting Assignment Help
Economics Assignment Help
Finance Assignment Help
Statistics Assignment Help
Physics Assignment Help
Chemistry Assignment Help
Math Assignment Help
Biology Assignment Help
English Assignment Help
Management Assignment Help
Engineering Assignment Help
Programming Assignment Help
Computer Science Assignment Help
Why Us ?
~24x7 hrs Support
~Quality of Work
~Time on Delivery
~Privacy of Work
Human Resource Management
Literature Review Writing Help
Follow Us |
T & C
Copyright by ExpertsMind IT Educational Pvt. Ltd.