Find Jobs
Hire Freelancers

Distributed computing using sockets and threads SPACE DUEL

RM32-99 MYR

Closed
Posted over 8 years ago

RM32-99 MYR

Paid on delivery
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.
Project ID: 8501240

About the project

1 proposal
Remote project
Active 8 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
1 freelancer is bidding on average RM333 MYR for this job
User Avatar
Bis jetzt wurde noch kein Vorschlag eingegeben
RM333 MYR in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of MALAYSIA
sungai petani, Malaysia
5.0
5
Payment method verified
Member since Aug 13, 2015

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.