I would like to hire a C Programmer - 25/11/2016 04:13 EST
Dette prosjektet mottok 23 bud fra talentfulle frilansere med en gjennomsnittlig budpris på $288 USD.Få gratis kostnadsberegning for et prosjekt som dette
Prosjektbudsjett$30 - $250 USD
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.
Ønsker du å tjene litt penger?
- Sett ditt budsjett og tidsramme
- Skisser ditt forslag
- Få betalt for ditt arbeid
Ansett frilansere som også har bydd på dette prosjektet
Ser du etter arbeid?
Arbeid på prosjekter som dette og tjen penger hjemmefra!Registrer deg nå
- The New York Times
- Wall Street Journal
- Times Online