Find Jobs
Hire Freelancers

Battleship game

$30-250 USD

Suljettu
Julkaistu yli 7 vuotta sitten

$30-250 USD

Maksettu toimituksen yhteydessä
You are so recognized now as a premiere programmer that you were hired by pirates to guide their ship out of harbor and onto the open sea. You will have to avoid numerous perils along the way. Overview The area between the harbor and the hole in the reef can be represented by a 15-by-30 grid where each point representing a square nautical mile. Contained in this grid are: One British battleship on patrol. Very hungry great white sharks that fancy pirates (they taste like chicken marinated in Guinness). Random icebergs. In addition, the entire perimeter of the oceanic area described is made up of icebergs that formed overnight. A single exit point from the wall of surrounding icebergs that will release your ship into the open sea for escape. Your program will repeatedly ask you which direction you want to move in. Each time you move, you must try to avoid hitting, or being hit/eaten by an iceberg or a shark (remember, they’re very big and like to eat pirates), or being blasted by the Brits. You are within range of the Brits if you are in an adjacent square to their war vessel, including diagonal squares. It’s almost certain that your ship will be obliterated by cannon fire. Function Decomposition You are being provided with the functions that you will need below. You simply need to add these to your program and complete the code and commit your program as below (see submission). The function prototypes and purposes are as follows: void briefing(); Give the user playing instructions. void readMap(char ocean[ROWS][COLUMNS], int, int, int, int); Read in the initial map from a file (this is the [login to view URL] file). Parameters include the map, your current position and the coordinates of the hole in the wall. The file contains exactly 15 lines of 30 integers per line, coded as follows: 0 = open sea 1 = iceberg 2 = shark 3 = British battleship 4 = the escape position 5 = your pirate ship When you create the actual map you are to insert/convert to the actual characters to be displayed into the array. Your ship and mates are represented by the character ‘’. (Arrgh!) The battle ship is represented by an asterisk ‘*’. Sharks are represented by the Latin symbol ‘œ’ (which sort of looks like a fish with its mouth open). Icebergs are represented by a solid dot ‘’. Open sea is represented by a blank ‘ ’. The escape position is represented by an ‘X’. You read in the map as a 2-dimensional array of integers for the sole purpose of file reading sanity. However, this is not how it will appear when you display it on the screen. You may not use the integer array to represent your ocean. As you read numbers, populate a 2-dimensional character array appropriately and proceed when finished reading the file.
Projektin tunnus (ID): 12151859

Tietoa projektista

14 ehdotukset
Etäprojekti
Aktiivinen 7 vuotta sitten

Haluatko ansaita rahaa?

Freelancerin tarjouskilpailun edut

Aseta budjettisi ja aikataulu
Saa maksu työstäsi
Kuvaile ehdotustasi
Rekisteröinti ja töihin tarjoaminen on ilmaista
14 freelancerit tarjoavat keskimäärin $142 USD tätä projektia
Käyttäjän avatar
Hi there, I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.
$30 USD 1 päivässä
5,0 (624 arvostelua)
7,2
7,2
Käyttäjän avatar
HI Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks Farah Saif
$140 USD 0 päivässä
5,0 (246 arvostelua)
6,6
6,6
Käyttäjän avatar
Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !
$120 USD 0 päivässä
4,9 (63 arvostelua)
6,6
6,6
Käyttäjän avatar
Hi mate this is Asad, i have a certification in c++ here and i am experienced too, need an A grade?contact me.
$155 USD 1 päivässä
5,0 (37 arvostelua)
5,9
5,9
Käyttäjän avatar
Hello, I am expert in java/c/c++ and i can deliver your task in the least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first check your work then release the payments. Pm me for further details. Thank You!
$200 USD 3 päivässä
5,0 (103 arvostelua)
5,6
5,6
Käyttäjän avatar
Hello, I am very interested in your project, and I am experienced this this kind of assignments. Please check my reviews. Please note that I ask for milestone payment to be setup before commencing work. Best Regards.
$90 USD 3 päivässä
4,9 (22 arvostelua)
5,1
5,1
Käyttäjän avatar
Hello My name is Ahmed, i'm a top rated freelancer. i worked over 250 projects and over 600 hours doing C++ and Java projects. small overview of feedback on my profile "you want to get your projects completed with quality? Hire Ahmed. Highly recommended." "Thoroughly satisfied with Ahmed, and would recommend him for anyone looking for an excellent developer!" "Highly recommended. Very smart and well experience" looking forward to work with you Regards
$40 USD 1 päivässä
5,0 (28 arvostelua)
4,3
4,3
Käyttäjän avatar
I have read and understood your design document. What OS does the program need to run on? Is it permitted to use external libraries (like ncruses) or only STL?
$150 USD 1 päivässä
5,0 (5 arvostelua)
2,3
2,3
Käyttäjän avatar
This seems to be a straight forward task but a bit fair bit of time will be committed to make sure that the solution is robust and dependable. I have built many similar text-based games, like the one proposed, mostly during my first few years as a computer science student so I have a firm grasp of game mechanics. Also, this is hands down the best description for a job I've ever seen.
$155 USD 3 päivässä
0,0 (0 arvostelua)
0,0
0,0
Käyttäjän avatar
PLEASE CONTACT ME REGARDING THE DETAILS AND FINAL PRICE OF THE PROJECT BEFORE AWARDING! Skill Set: - C/C++ - Java - Android app & ROM development - HTML5 & CSS3 - JavaScript & jQuery - PHP & MySQL. - Unity, Phaser Game Development. - Ajax - Adobe Photoshop. - Joomla Administration, Template building & Customizing. - WordPress, Drupal Administration, & Customizing. - CodeIgniter, CakePHP Framework. - Data entry - Article Writing (60 wpm). I believe my experiences and track record make me an excellent fit for this opportunity. Please feel free to contact me.
$100 USD 0 päivässä
0,0 (0 arvostelua)
0,0
0,0

Tietoja asiakkaasta

Maan UNITED STATES lippu
United States
0,0
0
Maksutapa vahvistettu
Liittynyt marrask. 21, 2016

Asiakkaan vahvistus

Kiitos! Olemme lähettäneet sinulle sähköpostitse linkin, jolla voit lunastaa ilmaisen krediittisi.
Jotain meni pieleen lähetettäessä sähköpostiasi. Yritä uudelleen.
Rekisteröitynyttä käyttäjää Ilmoitettua työtä yhteensä
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ladataan esikatselua
Lupa myönnetty Geolocation.
Kirjautumisistuntosi on vanhentunut ja sinut on kirjattu ulos. Kirjaudu uudelleen sisään.