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..
Types of mapping, draw associative mapping
draw associative mapping
Elements of programming language, ELEMENTS OF PROGRAMMING LANGUAGE: L...
ELEMENTS OF PROGRAMMING LANGUAGE: Learning a programming language requires understanding of concepts such as representation of different types of data in the computer, the va
Loading instructions, They are particular register instructions. They are u...
They are particular register instructions. They are used to load bytes or sequences of bytes onto a register. LODS (LODSB) (LODSW) LAHF LDS LEA LES LODS (LODSB) (LODSW) INSTRUCTION
Describe the protocol used by the mmu, Question 1: a) A distinction is...
Question 1: a) A distinction is often made between computer architecture and computer organisation. Describe, using examples, the meaning of computer architecture. b) Name
Operation system, how to create 1000 random processes with time scales betw...
how to create 1000 random processes with time scales between 10 to 400 milliseconds
Write a schema for the operation of ending a game, QUESTION 1 We need ...
QUESTION 1 We need to write Z specifications to record the information about passengers on board an aircraft. Here you are required to produce the specifications using appropr
Conditional codes, Explain about conditional codes
Explain about conditional codes
CAI, explain CAI pitfalls
explain CAI pitfalls
Cost of computer, If you have to consider the installation of communication...
If you have to consider the installation of communications packages, the same questions have to be asked. (a) Does the software and the modem support the necessary transmission
Artificial intelligence-representations/languages used, Many persons are ta...
Many persons are taught AI with the opening line: " The three most important things in AI are representation, representation and representation ". While selecting the method of
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.