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..
Define Multilevel Queue Scheduling?, • A multilevel queue scheduling algori...
• A multilevel queue scheduling algorithm divides the ready queue in several separate queues, for example • In a multilevel queue scheduling processes are lastingly assigned to one
Idk, A rock weighs 33.6 N on Planet X and 49 N on Earth. What is g on Plane...
A rock weighs 33.6 N on Planet X and 49 N on Earth. What is g on Planet X
Artificial intelligence-intelligence performanc of computer , "Just how are...
"Just how are we capable to get a computer to performe intelligent tasks?" One thing to answer the question is to tell that: Logic generate a science out of many forms of re
Data structures hw help, Create an implementation of the Ordered Associativ...
Create an implementation of the Ordered Associative Array API using left-leaning red-black trees. Illustrate the use of the API by refactoring your WordBench as a client of Ordered
Evolution of a computer, EVOLUTION OF A COMPUTER: Although 'computer',...
EVOLUTION OF A COMPUTER: Although 'computer', as we understand it today, is relatively of recent innovation, its development rests on centuries' of research. This section pres
Briefly explain the shutter speed, Question 1 Write a note on transition, ...
Question 1 Write a note on transition, transition types & Features Question 2 Describe the different types of lens used in film shooting Question 3 Briefly explain
CAI, WHAT IS CAI ITS PITFALLS
WHAT IS CAI ITS PITFALLS
What are the uses of the internet, Question 1 What are many of the modern ...
Question 1 What are many of the modern browsers in use today? Describe all in detail Question 2 Write a long note on the uses of Domain Names Question 3 What are the use
What is Kernel-Level Thread in operating system?, In this technique, the ...
In this technique, the kernel knows about and handles the threads. No runtime system is required in this case. In place of thread table in each process, the kernel has a thread tab
Build heap operation, prove that the build heap operation is O(N)
prove that the build heap operation is O(N)
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
Terms & Conditions
Copyright by ExpertsMind IT Educational Pvt. Ltd.