Find Jobs
Hire Freelancers

College Assignment - Simple Snark Hunter Game in Java

$30-250 USD

Завершено
Опублікований almost 13 years ago

$30-250 USD

Оплачується при отриманні
As a game begins the snark hides at a random grid point. At each step of the hunt the hunter takes a shot by indicating a grid point expressed as an x and y coordinate. The origin (0, 0) is in the bottom left hand corner of the grid. For a grid of size 10 the top right hand corner is (9, 9). If the grid point of the hunter’s shot is the same as the snark’s hiding place the snark is dead and the game is over and the hunter wins. The hunter has 5 shots to kill the snark. If the hunter fails to shoot the snark in 5 shots or gives up before all 5 shots have been used the game ends and the snark wins. After each unsuccessful shot the hunter is told where the snark is relative to the shot using compass directions as follows: Higher y coordinate Lower y coordinate Higher x coordinate Lower x coordinate Details : There is a console dump of a short but typical run of the application in the file called dump.txt. In this dump two games are played. In the first game the snark is shot dead which is a score for the hunter. In the second game the hunter gives up before 5 tries which is a score for the snark. In the dump the position of the snark is indicated by an “S”. This is just for testing and to make the dump clear. Obviously the final version of the application would suppress this indicator of the snark’s position. The position of the shot is indicated with an “*” and a successful shot by an “X”. Although your application is not required to reproduce the dump format exactly it should produce all the features of the dump. The following points give more details: 1. At the start of the application (before the first game) the application’s title is displayed followed by some brief instructions on how to play a game. 2. At the start of each game an empty grid is displayed before the coordinates of the first shot of the game are prompted for. 3. The Snark is randomly located somewhere within the swamp at the start of each game. 4. In each game the hunter has five shots. The number of shots remaining at any time is displayed. 5. A successful hit should produce an appropriate message and end the current game and increment the hunter’s score. 6. An unsuccessful shot should produce hints as to the relative compass position of the shot and the snark. 7. An unsuccessful fifth shot should end the current game and increment the snark’s score. 8. A user response of -1 before or at the fifth shot should end the current game and increment the snark’s score. 9. If the player chooses to play another game at any stage all relevant game variables should be reset and a new game played. There is no need to print the application title and brief game instructions for games other than the first game. 10. If the player chooses not to play another game at any stage the scores of both the hunter and the snark accumulated over the current run of the application should be displayed along with a goodbye message. Assignment Tasks: Part 1: Program Design As a first task read the whole assignment specification and draw a class diagram for each of the required classes. This helps develop an application’s design before plunging into the complexities of coding. Part 2: Writing the Hunter and snark classes Class You can write individual classes for the Snark and the Hunter classes or write a single class called Player that is used to instantiate a snark Player instance and a hunter Player instance. (........)You should also include a toString() method. You must write a test driver to test your Snark class. Test its attributes and methods as appropriate. Part 3: Writing the Swamp Class Randomly positioning its snark at the start of each game Setting the location of its hunter’s shot at each step of a game Determining if its snark has been hit Reporting on the relative position of its hunter’s shot and its snark Displaying its grid Part 4: Writing the Game Class Write the Game class to implement all the basic program logic in its main method.
ID проекту: 1073028

Про проект

15 пропозицій(-ї)
Дистанційний проект
Активність 13 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
Check your inbox.
$50 USD за 2 дні(-в)
5,0 (2 відгуки(-ів))
2,3
2,3
15 фрілансерів(-и) готові виконати цю роботу у середньому за $61 USD
Аватарка користувача
Hi, I am experienced JAVA programmer. I can develop this game in JAVA. Please accept bid. Thanks ePerfections
$150 USD за 2 дні(-в)
4,9 (285 відгуки(-ів))
6,8
6,8
Аватарка користувача
Hi, I am expert at Java game programing, and can surely satisfy you. Please check your inbox,
$149 USD за 3 дні(-в)
5,0 (86 відгуки(-ів))
6,1
6,1
Аватарка користувача
Hi, Please check pm. Thanks!
$85 USD за 3 дні(-в)
4,9 (47 відгуки(-ів))
5,4
5,4
Аватарка користувача
Gold Member! Please check your PM box!
$60 USD за 2 дні(-в)
5,0 (5 відгуки(-ів))
4,7
4,7
Аватарка користувача
Hello, please see your inbox. Thanks.
$55 USD за 0 день
4,9 (16 відгуки(-ів))
4,4
4,4
Аватарка користувача
Hi, I am a professional Java developer having experience in delivering Java assignments for student projects (Please review my past work). I can deliver you the code with all the necessary documentation. I will deliver the initial Demo application before accepting the bid. If you are satisfied, I will approve the acceptance and deliver the details. Please approve my bid.. Thanks & Regards, Michael
$40 USD за 1 день
5,0 (14 відгуки(-ів))
4,2
4,2
Аватарка користувача
Hello, please check your inbox
$50 USD за 1 день
5,0 (9 відгуки(-ів))
3,8
3,8
Аватарка користувача
I can do this
$50 USD за 2 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
I am an experienced java programer looking to help you. :-)
$30 USD за 4 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
please check PM
$40 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
Hi, please check PM...
$50 USD за 3 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
I can help you.
$30 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор AUSTRALIA
Melbourne, Australia
5,0
21
На сайті з трав. 24, 2011

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.