BattleShip

Submitted By: nermus50
Rating: starstarstarstar (Rate It)
Share: Share By Email By Email

Classic BattleShip Game in C++
(created with dev-c++)
2 players required.
Game ends when the player has all his ships wrecked.
Two ways of playing
Read info.txt


File Details
NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our submissions area.

Screenshot


Details

File Name:
C:\BattleShip.zip
Product homepage:
Order page:
Languages:
C++
Platforms:
Unknown
Release date:
License:
Unknown
Size:
6 KB
Price/Fee (US$):
Unknown
Number of downloads:
2182

Comments (9)

well done starstarstarstarstar   Posted by: Adam on Tuesday, January 06, 2009

Excellent

Cannot play due to bug star   Posted by: bilderbikkel on Saturday, February 07, 2009

When I start the game, I get a bug which prevents me to even play the game: 'Error 2: Wrong co-ordinate pair for ship 1'. Coding style is moderate: for example, there is the use of a hand-controlled linked-list where a std::vector would have been easier.

For the code, I'd given it three stars, due to this deadly bug, I only give it one star.

I hope the writer will correct the error and repost the program.

reply to bilderbikkel starstarstarstar   Posted by: Creator on Monday, February 16, 2009

The bug you are referring to does not exist.
Most likely your input is WRONG.
I would have chosen vectors if I wanted to but its irrelevant with the end result. Afterall, programming is totally heuristic.

amaizing starstarstarstarstar   Posted by: andres on Thursday, April 09, 2009

this program has no bugs it works perfectly!!!

Awesome starstarstarstar   Posted by: Jdash on Wednesday, October 28, 2009

I really enjoyed the game. Too bad there isn't an option to play the computer.(Which I hope you are making next.)

Not too bad starstarstarstar   Posted by: Fronic on Saturday, December 05, 2009

The game is pretty good. I do have a problem with the fact that in order to understand what you are doing you have to read the info text. It might have been more user-friendly to make the instructions directly where they are located in the program.(ie "Replay after a successful bombing? Enter 0 for no or 1 for yes.") Also, if it were me, I would have had placing the ships as a simple two inputed response: "Give co-ordinates:" and "Give direction away from co-ordinates:". Those are all I have for constructive criticism for you and I find the game to be enjoyable.

pointers starstarstarstarstar   Posted by: howard on Tuesday, December 08, 2009

what does the pointers i this code mean andis ther a puesudo code?

tiggerlini starstarstarstarstar   Posted by: nermus50 on Sunday, December 20, 2009

Very very nice! Good job

Too Easy For User Error starstarstarstar   Posted by: Nickelxk5 on Monday, December 21, 2009

I would play have other people you know play your game, without your help, and observe what they do and reduce amount of room there is for user error. It took me 4 or 5 tries just to put one ship in to the coordinates. I think it would be easier if you prompted the user to enter the "start" coordinate for the ship, and the "end" coordinate. Also i think using O's and X's for marking the feild would be better. But as you can tell all my suggestions are nit picking at your "game" not the code, its a great program i am impressed.

Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.