Geschlossen

I would like to hire a C Programmer - 25/11/2016 04:13 EST

Dieses Projekt hat 25 Angebote von talentierten Freelancern mit einem durchschnittlichen Angebotspreis von $277 USD erhalten.

Erhalten Sie kostenlose Angebote für ein Projekt wie dieses
Arbeitgeber arbeiten
Projektbudget
$30 - $250 USD
Angebotsanzahl
25
Projektbeschreibung

QUESTION: You will write code of a “Battleship Game”. Rules: Create a game board 10x10 size with 2-dimensional array Game should be a single player. Your program will randomly place 7 ships on the game board, and player will try to hit all ships to finish the game. There will be 7 ships : 1 ship in size of 1x5 cells 1 ship in size of 1x4 cells 1 ship in size of 1x3 cells 2 ships in size of 1x2 cells 2 ships in size of 1x1 cells All ships should be placed on the board randomly. All ships can be placed on the board vertical or horizontal randomly. You need to print these at each stage : Print the game board At first all cells should be viewed as “*”. Also all unknown/hidden cells should be viewed as “ * ” at all stages. Hit cells should be viewed as “ O ” Missed cells should be viewed as “ X ” Display a menu 1-> Shoot (User enters a coordinate and hits) 2-> Shoot randomly (Random coordinate gets hit) 3-> Show ships (Shows all ships) 4-> New game (Restarts game and re positions all ships) 5-> Quit game (Quits program) At least these operations must be implemented as different functions : Placing ships Displaying game board Shooting (User and random) Users should get a score at the end of the game depending on successful hits.

Möchten Sie Geld verdienen?

  • Legen Sie Ihr Budget und Ihren Zeitraum fest
  • Skizzieren Sie Ihr Angebot
  • Bekommen Sie Geld für Ihre Arbeit

Heuern Sie Freelancer an, die auch auf dieses Projekt geboten haben

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online