根据所学的Java内容,编写一款游戏,如Hang-man game, snakes and ladders等等。
Requirement
This project is designed to let you master and apply all your previous
programming skills in a fun yet challenging way. It will last the equivalent
of seven class periods and out of class work is expected. You are required to
write a large, relatively complex program that demonstrates your understanding
of the Java language and your programming ability. Graphics and sound should
be correctly incorporated into your program to enhance its appeal. Your
program may be chosen from the following list or be one of your own design
provided that it is approved by your instructor.
Write a two-player “name that tune” type game. Each player, in turn, enters
how many seconds she thinks she needs to listen to a sound clip before
identifying it. Each player enters a lower value for the amount of time or
passes. When a player passes then the other player hears the tune for the
amount of seconds she entered and must identify it. If she identifies it
correctly then she is awarded points. The first player to 100 points wins.
Feel free to extend this in any way you wish and possibly use themes for you
tunes, like identify this cartoon character, or this T.V. show, etc.
Write a hang-man type game. The program can either randomly select a
predefined name or phrase or a second player can enter it. Next, a user
guesses letters of the phrase and after each correct guess is given an
opportunity to guess the phrase. However, after each incorrect guess an
additional part of the hang-man picture is displayed and when the picture is
complete the player loses. She wins if she guesses the phrase before the
picture is complete.
Write a two-player snakes and ladders program where the user must advance to
squares based upon the total of two cast dice. The board is a 10 by 10 square,
numbered 1 to 100. The player moves to consecutive squares but if she lands on
a square with a ladder she climbs the ladder and advances to the upper square
of the ladder. However, if she lands on a snake’s head she slides down the
snake and descends to the square containing the snake’s tail. The first person
who reaches the 100th square wins.
Write a tutorial program. It is used by one or two users at a time and teaches
or tests the user(s) knowledge about a particular topic. The program can be a
straight tutorial or a tutorial type game. The program could use multiple
choice type questions with JOption messages and mouse clicks. Be creative!
Grading
Projects will be marked out of 70:
- The checkpoints for the summative?
Request for Design - paragraph of what you would like to do. - Progress Check - oral interview with you to see where you’re at, and submission of all code currently completed. (All pictures and sounds downloaded and most of init method done.
Able to display some pics and play some sounds.) - Progress Check 2 - oral interview with you to see where you’re at, and submission of all code currently completed. (Program runs, sounds play, hero/enemies move and interact.)
Note: The teacher reserves the right to question any student about the logic
or content of the program submitted.