Closed

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

This project received 25 bids from talented freelancers with an average bid price of $277 USD.

Get free quotes for a project like this
Employer working
Project Budget
$30 - $250 USD
Total Bids
25
Project Description

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.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

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