Find Jobs
Hire Freelancers

Battleship C++

$30-250 USD

Completed
Posted almost 14 years ago

$30-250 USD

Paid on delivery
Description Here are the basic requirements: You need to create a 10 x 10 playing field for each player to place their pieces and an additional 10 x 10 playing field to capture their shots at the opposing player. Each player gets 1 Carrier (5 spaces), 1 Battleship (4 spaces), 1 Frigate (3 spaces), 1 Submarine ( 3 spaces) and 1 Minesweeper (2 spaces) Each ship is to be placed on the board horizontally or vertically Board - The board is 10 x 10 organized with A-J identifiers across the top, and 0 - 9 identifiers down the side A B C D E F G H I J 0 1 2 3 4 5 6 7 8 9 Use appropriate symbols to layout the grids (check out the ASCII symbols), and use the notation CHAR-NUMBER (e.g A-2) to indicate where a shot is to be placed. Players: There are two players in this game Each player gets their turn placing their pieces down on the board After each player has placed their pieces they take turns shooting at the others board If a player's shot hits an opposing player's ship (a spot on the board where a ship is located) then his marking board displays an "X" in that spot If a player's shot misses and opposing player's ships, then a "-" is placed in that spot on his marking board If a players ship is hit, his board should show what ship was hit and where The board should be cleared between players so that each player only sees his ships status and his shots status. It needs to be done using simple c++. nothing extreme. We've only covered loops, functions, structures, and arrays in our class. Appropriate functions should be created to initialize the structures, display messages to the players, display the boards, determine if there is a hit or miss, update the data structures etc. etc.
Project ID: 670301

About the project

6 proposals
Remote project
Active 14 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello, please read PMB for more details
$50 USD in 2 days
5.0 (1 review)
1.4
1.4
6 freelancers are bidding on average $203 USD for this job
User Avatar
Hello, I'm interested in your project, Please check PMB for more details.
$45 USD in 2 days
4.5 (14 reviews)
4.0
4.0
User Avatar
Hello, here I bid on your project again. ->Could you do this in the most simple C++ you know, and in English. Yes of course, it would also be heavily commented for you to understand it easier. ->if possible could you send me a screenshot of how the game... I will send you the program so you can TRY it before paying.
$30 USD in 1 day
4.4 (1 review)
2.0
2.0
User Avatar
Hi, Im videogames Engineer expert in OpenGL. I can help you in this proyect. Best regards.
$1,000 USD in 30 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I can make you have the best Battleship game in your class :-). C++ code with english comments, a nice ASCII interface, etc.
$40 USD in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Hialeah, United States
5.0
1
Member since Apr 25, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.