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..
2. What benefits can a company gain by managing its , 2. What benefits can ...
2. What benefits can a company gain by managing its own information infrastructure and services?
Subroutine , Subroutine : A subroutine is a type of subprogram, a pi...
Subroutine : A subroutine is a type of subprogram, a piece of code within a larger program that performs a specific task and is relatively independent of the remaining code.
Assembly Language Project, Our instructor gave us a project in making a mec...
Our instructor gave us a project in making a mechanical game or simple device using assembly language, can anyone give me a an example of a project description for our proposal?
Basic concepts of Assembler language , Information Units In order for the P...
Information Units In order for the PC to process information, it is essential that this information be in unique cells called registers. The registers are sets of 8 or 16 flip-flop
Assembly language, Assembly language : Assembly language is a low level...
Assembly language : Assembly language is a low level programming language similar to machine language, but far easier to write and understand because machine language binary in
Constant , Constant: In contrast to a variable, which is used as ident...
Constant: In contrast to a variable, which is used as identifier for a value and which can change, constants are identifiers that are used for values, which cannot be changed.
What is .net framework, Qestion 1 What is .Net Framework? Qestion 2 W...
Qestion 1 What is .Net Framework? Qestion 2 Write short notes on constructors and destructors Qestion 3 Explain boxing and unboxing with examples Qestion 4 What is
What are the Proposals for Achieving Mutual Exclusion?, Proposal a) Disabli...
Proposal a) Disabling Interrupts (Hardware Solution) • Every process disables all interrupts just after entering in its critical section and re-enables all interrupts just previous
Z80 CPU STATUS FLAGS, function of each status flags Z80 status flags
function of each status flags Z80 status flags
Define Program formation process, For the formation of a program it is nece...
For the formation of a program it is necessary to follow five steps: Design of the algorithm, stage the problem to be solved is reputable and the best solution is proposed, creatin
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
IT Courses and 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.