Find Jobs
Hire Freelancers

Distributed computing using sockets and threads SPACE DUEL

RM32-99 MYR

已关闭
已发布超过 8 年前

RM32-99 MYR

货到付款
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: 8501240

关于此项目

1条提案
远程项目
活跃9 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
1威客以均价RM333 MYR来参与此工作竞标
用户头像
Bis jetzt wurde noch kein Vorschlag eingegeben
RM333 MYR 在3天之内
0.0 (0条评论)
0.0
0.0

关于客户

MALAYSIA的国旗
sungai petani, Malaysia
5.0
5
付款方式已验证
会员自8月 13, 2015起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。