Find Jobs
Hire Freelancers

Battleship

$30-100 USD

Cancelado
Publicado hace más de 17 años

$30-100 USD

Pagado a la entrega
The game of Battleships involves two players. Each player has a stock of ships of different classes. The player arranges these vertically or horizontally on a grid. Each class of ship occupies a different number of grid squares. In the paper-based version of this game the squares are addressed by column (letter) and row (number). Each player has their own grid which does not overlap their opponent’s grid. Players cannot see their opponent’s ships. Players take it in turns to direct fire at grid coordinates. Different variations of the game allow different numbers of ‘shots’. A common approach is to allow the same number of shots as the player has ships remaining. After a player has taken his or her turn, the opponent reports on the success of each shot. In the paper-based version of the game this comprises listing the grid coordinates targeted, together with a ‘hit’ or ‘miss’ report. If all of the grid coordinates occupied by a particular ship have been hit then the ‘hit’ message is replaced with a ‘sunk’ message. The winner is the player who has sunk all of his or her opponent’s ships. The task is to implement this game using a client-server approach. The server will allow users to request to join a game. When two players have elected to play, they will each be invited to place their ships on a grid. You are urged to focus on the communications protocols to be adopted initially. This is best achieved by implementing a text based version of the game in which everything is achieved though the communication of grid coordinates and damage messages. The server should be able to support multiple games concurrently. Having developed and tested such a text-based version, you may proceed to develop appropriate user interfaces. If a graphics interface is chosen you may use a third party library that supports graphics on either the server or the client. Alternatively, it is perfectly feasible to implement the interface using a client-side scripting language to manipulate images within a grid constructed using HTML and CSS. Sound and other appropriate multimedia content may be used. Better solutions will permit basic configuration of the game. For example by allowing the number and type of ships to be specified or by defining the rule employed to determine the number of shots available at each ‘turn’. A brief document should accompany with this work. This must document overall design particularly focussing on: The persistence mechanism used The communications protocol The software architecture The design and implementation of the user interface
ID del proyecto: 107218

Información sobre el proyecto

3 propuestas
Proyecto remoto
Activo hace 17 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
3 freelancers están ofertando un promedio de $93 USD por este trabajo
Avatar del usuario
first thing i ever programmed in 1983 used not even 64k at that time had grafix and was FAST - mhwse
$100 USD en 30 días
4,1 (5 comentarios)
3,0
3,0

Sobre este cliente

Bandera de UNITED KINGDOM
Stoke-on-Trent, United Kingdom
0,0
0
Miembro desde nov 14, 2006

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.