Find Jobs
Hire Freelancers

C++ console based Battleship game.

$30-250 USD

En curso
Publicado hace más de 13 años

$30-250 USD

Pagado a la entrega
The semester project is to create a console based version of the game Battleship! Here are the basic requirements: •You need to create a 12 x 12 playing field for each player to place their pieces and an additional 12 x 12 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 12 x 12 organized with A-L identifiers across the top, and 0 - 11 identifiers down the side A B C D E F G H I J K L 0 1 2 3 4 5 6 7 8 9 10 11 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. Grading: Appropriate data structures (arrays) should be used to hold the information 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 datastructures etc. etc.
ID del proyecto: 876281

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 13 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
2 freelancers están ofertando un promedio de $38 USD por este trabajo
Avatar del usuario
I did it already!
$45 USD en 0 día
5,0 (12 comentarios)
5,3
5,3
Avatar del usuario
dear sir check pm.
$30 USD en 3 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
New York, United States
0,0
0
Miembro desde dic 7, 2010

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.