Find Jobs
Hire Freelancers

Distributed computing using sockets and threads SPACE DUEL

RM32-99 MYR

Cerrado
Publicado hace más de 8 años

RM32-99 MYR

Pagado a la entrega
Write an ASCII graphics game for two computers using the techniques from Lab 5 and Lab 6 where each player controls a space ship. You always see your own space ship at the bottom of the screen, while your enemy's space ship is at the top of the screen, for example: +------------------------------------------------------------------------------+ | +-H-+ | | V | | | | | | | | | | | | | | | | | | | | A | | | | | | | | V | | | | | | | | | | | | | | A | | +-H++ | +------------------------------------------------------------------------------+ Here we see your space ship at the bottom shooting missiles “A” while your enemy, controlled from the other PC, shoots “V”. The missiles proceed across the screen until they hit the other side or another missile coming the opposite direction. (If two missiles hit each other, both are eliminated.) You move your ship with the left and right arrow keys, and shoot with the up arrow key. Your program must communicate with the program running on the other computer in order to update the screen with the current ship and missile positions. You should be able to keep shooting more missiles even while earlier missiles are still flying on the screen. The game ends when a missile hits a ship. The game should then announce whether you won or your opponent won. Hint: to figure out what the arrow keys generate in getch, write a little test program that calls getch and prints out what the return value is.
ID del proyecto: 8501240

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 9 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
1 freelancer está ofertando un promedio de RM333 MYR por este trabajo
Avatar del usuario
Bis jetzt wurde noch kein Vorschlag eingegeben
RM333 MYR en 3 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de MALAYSIA
sungai petani, Malaysia
5,0
5
Forma de pago verificada
Miembro desde ago 13, 2015

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.