Java Applet (Only alteration)

Closed Posted May 8, 2008 Paid on delivery
Closed Paid on delivery

I'm having two different java code (Java Applet) for the same game. I want to mix these two codes and want to convert it into a little bit different code. I'll be providing two source codes for the game. Its a very simple game with little bit of GUI. The sample of .jar file is attached and the source code will be provided after the initial bidding is done.

## Deliverables

Problem Specification Nim is a two person game in which players alternatively take “pieces?? from a pile of pieces. The number of pieces in a pile may vary from game to game. On each move a player must take at least one piece and no more than a pre-agreed limit number of pieces from the pile. In our version of the game the loser is the player who takes the last piece. Requirements The following is a brief description of the essential functional requirements for the program: 1. For each game the program will generate a random number between 10 and 100 to determine the number of pieces in the initial pile; 2. The program will ask the user to set a limit on the number of pieces that can be take on each move; 3. The program will ask who should go first: the user or computer; 4. On each go the user should enter the number of pieces he/she wishes to remove from the pile: this number should be validated by the program to ensure it is valid, e.g. in the range 1 to max_limit; 5. During the game a commentary of interactions should be displayed most probably in a text area; this will indicate such things as the number of pieces left, how many the computer has taken, the final win/ loose message 6. At any point during the game the user should be able to abort the current game; 7. At any point during the game the user should be able to exit the program; 8. After aborting a game the user should be able to elect to start another game or exit the program. For each game the program should be allowed to randomly select either a simple computer player or a smart computer player. The user must not be aware of which opponent he/she is facing. The simple computer player will make a random legal move on each turn. The smart computer player will use a strategy which is guaranteed, maybe, to permit it to win. A suggested formula you might use for the smart computer player is: numberPieces = (currentPileSize ??" 1) % (maxLimit +1) For both types of computer player remember that the numberPieces must be at least 1 and may be no more than maxLimit. You may have problems during the end game. General points • You must make use of inheritance in developing this program. The obvious place to demonstrate your understanding of this concept is by introducing a Computer Player class and then extending it for specific types of players. • All interactions must be via a GUI. Typically you can expect to make use of buttons, text areas, text fields. • The program should consist of a number of classes each with well defined functionality. There should be a driver class to set things going; a GUI class to provide the user interface; classes concerned with the game and the players. Remember that in object oriented programming we build programs from sets of well defined classes. • The design of the GUI is left up to you. Try to use a range of Swing features, e.g. buttons, labels, text areas, etc. • Your program should deal with error conditions by producing an error dialogue window when the use makes a mistake, e.g. attempting to take more pieces than the preset limit. (You should consider the use of JOptionPanes for the error dialogues. This will require a little investigation on your part) • All classes must be fully documented using the Javadoc. • The code you produce must adhere to the course coding standards • You will be expected to test your program against a suitable set of situations. In the documentation you should describe your testing strategy

Engineering MySQL PHP Project Management Software Architecture Software Testing

Project ID: #3919789

About the project

8 proposals Remote project Active May 19, 2008

8 freelancers are bidding on average $175 for this job

kindcodersl

See private message.

$85 USD in 2 days
(250 Reviews)
6.8
bilal0003

See private message.

$340 USD in 2 days
(14 Reviews)
4.8
Vladp

See private message.

$85 USD in 2 days
(12 Reviews)
2.5
aoiteamvw

See private message.

$297.5 USD in 2 days
(4 Reviews)
3.0
rameshjasmine

See private message.

$85 USD in 2 days
(0 Reviews)
0.0
need4speedeu

See private message.

$85 USD in 2 days
(1 Review)
0.0
cosminzamfir

See private message.

$314.5 USD in 2 days
(0 Reviews)
0.0
zonemikel

See private message.

$106.25 USD in 2 days
(0 Reviews)
0.0