Small simple Java program needed

Completato Pubblicato 5 anni fa Pagato alla consegna
Completato Pagato alla consegna

I need a small Java project to be completed. The project consists of creating a small game with basic controls and requirements. Here is the description of the project:

There is an artificial environment that a robot can freely walk on that. The user controls the robot's movement. The environment automatically will be loaded from the given file. The environment is a 2D character set. The program should read a 2D array of characters. The program should store the entire map inside an array. To move the robot, you give the commands like u for up and d for down and... If the location is blocked you can produce a new command. After each move, the energy of the robot reduces by one. If you receive to the goal point within the number of allowed steps (i.e. The total energy) then you are a winner. If you run out of steps, you are a loser. If you enter a blank line the program exits.

The program should store the states of the robot on private static member variables.

The program should only have one class "GoalSeekingRobotGame". The others must be static methods.

There are different types of characters:

Goal: '*'

Robot: 'o'

Empty space: ' '

Obstacle: '#'

Battery: '+'

Trap: '-'

Boundary: %

Direction: A character number: 'u', 'l', 'd', 'r'

The user can move to any direction by inserting any of the following characters: u, l, d, r

The robot has a certain initial energy. After each move, its energy reduces by one.

The robot's energy increases by 10 when moving over a battery and the battery disappears.

The robot's energy decreases by 10 when moving over a trap and the trap disappears.

The direction will never disappear and they show the goal is located in which direction.

The robot can only see a square space around itself with a radius of two blocks. It saves its memory and it marks its path with '.' characters.

The user is the winner if it reaches the goal point without running out of energy.

No Methods body (i.e. between { and }) is allowed to be larger than 12 lines.

The attached files are for the game and a test drive to read the game configurations.

I need this completed as soon as possible (under a day). Thanks

Java

Rif. progetto: #17964912

Info sul progetto

9 proposte Progetto a distanza Attivo 5 anni fa

Assegnato a:

computerneek

Perhaps the biggest question I have is to the UI. From your description, it sounds like this will be a console game- and the method size limit should be easy with my normal top-down design methodology. I expect this Altro

$15 USD in 1 giorno
(10 valutazioni)
2.6

9 freelance hanno fatto un'offerta media di $47 per questo lavoro

asadrana91

Hello this is asad, i have a vast experience in java programming , if you need an A grade , contact me.

$50 USD in 1 giorno
(90 valutazioni)
6.5
corke123

This should not be a very complex task but it could be hard to finish it in a short time so the price is this. You don't specify does the application must be a console one or a gui. If you want the console app I will d Altro

$30 USD in 1 giorno
(45 valutazioni)
5.2
polarjin2017

Hello? How are you? I have good skills in So I can complete your job in time. Hope to work with you. Thank you.

$55 USD in 3 giorni
(20 valutazioni)
4.8
Devesh23

Hello, I have read the program description mentioned by you and I am pretty sure this matches to my skill set. I love programming with Java and other C like languages. The application you mentioned actually is going to Altro

$77 USD in 1 giorno
(10 valutazioni)
3.9
mukesh30march

hello i read instruction that is given in this project please provide more detail for the project i have done number of project in OS simulation i will provide 5 star rating work thanks

$88 USD in 1 giorno
(18 valutazioni)
3.6
tylerkitchens23

I have watched java grow up and mature into the language that it has become today. Though I am young, I have 6 years of java programming under my belt and this project seems very manageable I am a third-year Compute Altro

$35 USD in 1 giorno
(2 valutazioni)
1.1
dev7fares

Hello my name is Fares, I can get it done perfectly as you want let's chat when you are online, Thanks

$45 USD in 3 giorni
(0 valutazioni)
0.0