
I need a program done in Java
- or -
Post a project like this3203
$
- Posted:
- Proposals: 8
- Remote
- #1515969
- Completed
Database Engineer, Infrastructure, DevOp and Tech Support, Software development
147857715006851470731033789129977106480915373551524531
Description
Experience Level: Entry
The program is the famous 15-puzzle see pg: en.wikipedia.org/wiki/15 puzzle
The frame will only contain 15 tiles where each tile is labeled with a number between 1 and 15. Since one of the locations is empty, it is possible to slide another tile into this location. The overall goal is to reach the point where the numbers are organized so that they read 1,2,3,...15,space.
Requirements:
-Write two classes and one text file
-PART 1
Create a file called Board.java which will be the guts of the project. This class should contain a private field int the_frame (a 5x5 integer array), and the following public methods with exact name and parameter lists types:
+ a method readInitialBoard(String filename)
+ a method makeMove(int number)
+ a method showBoard(),
+ a method isCorrect()
Each method does exactly what a person would expect, you are welcome to have OTHER fields and methods as well..
-PART 2
Create a file called Driver1.java which will interact with the user and "run" your program. Typically, this class would create an instance of Board.java, fill the board with the information from the user (the very first thing it asks the user). Then it would repeatedly ask the user for a command and perform that command. Legal commands would include:
+ help
+ quit
+move
It ends if the user quits or the problem is solved.
There is more information on the PDF file that I have attached. All in all, it is a simple program, just that I do not have time to do it!
-Thank you!
The frame will only contain 15 tiles where each tile is labeled with a number between 1 and 15. Since one of the locations is empty, it is possible to slide another tile into this location. The overall goal is to reach the point where the numbers are organized so that they read 1,2,3,...15,space.
Requirements:
-Write two classes and one text file
-PART 1
Create a file called Board.java which will be the guts of the project. This class should contain a private field int the_frame (a 5x5 integer array), and the following public methods with exact name and parameter lists types:
+ a method readInitialBoard(String filename)
+ a method makeMove(int number)
+ a method showBoard(),
+ a method isCorrect()
Each method does exactly what a person would expect, you are welcome to have OTHER fields and methods as well..
-PART 2
Create a file called Driver1.java which will interact with the user and "run" your program. Typically, this class would create an instance of Board.java, fill the board with the information from the user (the very first thing it asks the user). Then it would repeatedly ask the user for a command and perform that command. Legal commands would include:
+ help
+ quit
+move
It ends if the user quits or the problem is solved.
There is more information on the PDF file that I have attached. All in all, it is a simple program, just that I do not have time to do it!
-Thank you!
Geovany L.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
50%
Last project
4 Apr 2017
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-

What college is this for?
373556
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies