美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

CSC 256代寫、C++設(shè)計(jì)編程代做

時(shí)間:2024-04-30  來源:  作者: 我要糾錯(cuò)



CSC 256-04 Final Project Part 2 (50 Points)
An ancient robot game
For this project, you are given a program that implements a game where a human user
tries to escape from four robots. The user and four robots are on an x-y grid. On every
step, you enter a move for the human. The robots will attempt to get closer to the human.
When a robot has the same x-y coordinates as the human, the game is over. You will
translate this program faithfully, following all function call guidelines and MIPS register
use conventions.
Two arrays x[4] and y[4] keep track of the x- and y-coordinates of four robots. The
positions of the human and the four robots are initialized in the program. On each step,
the user enters a move; the positions of the human and the robots are updated. This
continues until the human dies. This figure gives an idea of the game; we’ll work with a
text-only version, sorry.
In the main loop, the user is prompted to enter a move. The position of the user is
updated. Then the program calls a function moveRobots() to update the position of
the robots as they try to catch the human. The new positions of the human and the robots
are then displayed.
The function moveRobots() has prototype
int moveRobots(int *arg0, int *arg1, int arg2, int arg3)
arg0 is the base address of array that contains the x-coordinates of the four robots, arg1 is
the base address of array that contains the y-coordinates of the four robots, arg2 is the
x-coordinate of the human, arg3 is the y-coordinate of the human.
moveRobots()updates the positions of the four robots, and returns a 1 if the human is
alive, and a 0 if the human is dead (i.e., the human has the same coordinates as a robot).
Each coordinate of a robot is updated by calling the function getNew(), which returns
the new coordinate based on the current coordinate of the robot and the current
coordinate of the human.
When you translate moveRobots() to MIPS assembly language, arg0 through arg3
are in $a0 through $a3; the return value is in $v0.
The function getNew() uses simple rules to move a robot closer to the human. If the
difference in the coordinates is >=10, the robot's coordinate will move 10 units closer to
the human. If the difference in the coordinates is < 10, the robot's coordinate will
move one unit closer to the human. (See program listings.) getNew() has prototype
int getNew(int arg0, int arg1)
arg0 is the coordinate (x or y) of a robot, arg1 is the coordinate (x or y) of the human.
getNew() returns the new coordinate of the robot, based on the position of the human.
The function getNew() is already translated to MIPS assembly language, arg0 and arg1
are in $a0 and $a1 respectively, and the return value is in $v0.
A copy of the C++ program robots.cpp can be found here. The file assembly file contains
the main program and getnew(), already translated into MIPS assembly language. Your
functions will follow the main program in the same file. The template assembly file can
be found on Canvas.
Write the functions exactly as described in this handout. Do not implement the
program using other algorithms or tricks. Do not even switch the order of the arguments
in function calls; you must follow the order specified in the C++ code. The purpose of
this program is to test whether you understand nested functions. If you wish to make
changes to the algorithm, you must first check with the instructor.
Your functions should be properly commented. Each function must have its own header
block, including the prototype of the function, the locations of all arguments and return
values, descriptions of the arguments and how they are passed, and a description of what
the function does. Paste in the C++ code as inline comments for your MIPS assembly
code.
Submission: submit your code via Canvas. All your code should be in a single plain text
file(PDF only).
80% of your grade is for correctness. 20% is for clarity/documentation.
Output%
Your coordinates: 25 25
Enter move (1 for +x, -1 for -x, 2 for + y, -2 for -y):2
Your coordinates: 25 26
Robot at 10 10
Robot at 10 40
Robot at 40 10
Robot at 40 40
Enter move (1 for +x, -1 for -x, 2 for + y, -2 for -y):1
Your coordinates: 26 26
Robot at 20 20
Robot at 20 30
Robot at 30 20
Robot at 30 30
Enter move (1 for +x, -1 for -x, 2 for + y, -2 for -y):2
Your coordinates: 26 27
Robot at 21 21
Robot at 21 29
Robot at 29 21
Robot at 29 29
Enter move (1 for +x, -1 for -x, 2 for + y, -2 for -y):1
Your coordinates: 27 27
Robot at 22 22
Robot at 22 28
Robot at 28 22
Robot at 28 28
Enter move (1 for +x, -1 for -x, 2 for + y, -2 for -y):2
Your coordinates: 27 28
Robot at 23 23
Robot at 23 28
Robot at 27 23
Robot at 27 28
AAAARRRRGHHHHH... Game over
libra%

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp


















 

標(biāo)簽:

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:代做FINM7008、代寫FINM7008 Applied Investments
  • 下一篇:COMP30024代做、代寫 Game of Tetress
  • 無相關(guān)信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風(fēng)景名勝區(qū)
    昆明西山國家級風(fēng)景名勝區(qū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗(yàn)證碼平臺 理財(cái) WPS下載

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    国产大学生av| 国产高清成人久久| www.狠狠爱| 在线免费观看亚洲视频| 成人免费看aa片| 波多野结衣影院| 国产精品国产高清国产| 国产特黄级aaaaa片免| 蜜臀av粉嫩av懂色av| 国产精品偷伦视频免费观看了| 国产aaaaaaaaa| jizzjizzjizz国产| 日韩av片在线免费观看| 男人天堂资源网| 卡通动漫亚洲综合| 特级片在线观看| jjzz黄色片| 亚洲欧美日本一区| 香蕉视频黄色在线观看| 人妻精品久久久久中文字幕| 黄色短视频在线观看| 国产精品久久不卡| 中文天堂资源在线| 精品国产乱码久久久久久鸭王1| 国产美女永久免费无遮挡| av男人的天堂av| 天堂在线中文视频| 免费中文字幕日韩| 国产精品果冻传媒| 蜜桃无码一区二区三区| 日本中文在线视频| 亚洲精品乱码久久久久久蜜桃图片| 国产精品九九视频| 一本在线免费视频| 欧美三级日本三级| 青青草福利视频| 伊人影院在线观看视频| 右手影院亚洲欧美| 任你操精品视频| 中文字幕18页| 999精品在线视频| 69av视频在线| 欧美激情 一区| 杨幂一区二区国产精品| 日韩无码精品一区二区| 国产日韩精品中文字无码| 91视频在线免费| 深夜福利影院在线观看| 少妇精品无码一区二区免费视频| 国产精品一区二区无码对白| 中文字幕无码日韩专区免费| 国产麻豆天美果冻无码视频| 日韩影院一区二区| 欧美做受高潮6| 四虎精品一区二区| 乱码一区二区三区| 国产高潮流白浆| 日本免费www| 亚洲AV无码国产成人久久| 尤物网站在线观看| 国产婷婷在线观看| 最新国产精品自拍| 国产原创剧情av| av无码一区二区三区| 中文字幕一区二区三区人妻在线视频 | 成人无码www在线看免费| 91ts人妖另类精品系列| 短视频在线观看| 国产a级黄色片| 性色av蜜臀av浪潮av老女人 | 制服丝袜在线第一页| 国产真实乱在线更新| 羞羞在线观看视频| 日韩av片在线免费观看| 久久亚洲无码视频| 国产 欧美 在线| 国产一二三av| 日本少妇一区二区三区| 91福利视频免费观看| 熟女人妻一区二区三区免费看| 老熟妇一区二区| 日本在线不卡一区二区| 日本女人性视频| 538精品在线视频| 日韩精品一区二区亚洲av性色| 少妇一级黄色片| 伊人影院综合网| 日韩一区二区三区四区视频| 欧美黄色一级生活片| 在线视频第一页| 伊人网伊人影院| 91麻豆精品国产91久久综合| 97超碰在线资源| 少妇人妻好深好紧精品无码| 亚洲色图27p| 在线免费观看日韩av| 亚洲欧美综合视频| 精品人妻无码一区二区三区| 精品人伦一区二区| 波多野结衣亚洲色图| 成年人网站免费看| 国产探花在线播放| 无码少妇一区二区| 白丝校花扒腿让我c| 亚洲色图日韩精品| 亚洲一级av无码毛片精品| 少妇高潮惨叫久久久久| 亚洲精品乱码久久久久久蜜桃图片| 成人影视免费观看| 农村黄色一级片| 娇妻被老王脔到高潮失禁视频| 免费看毛片的网站| 亚洲综合中文网| 中文字幕av一区二区三区人妻少妇 | 天堂久久精品忘忧草| 免费成人美女女在线观看| 久久久久9999| 色综合久久久无码中文字幕波多| 久久中文免费视频| 国产av无码专区亚洲av毛网站| 女尊高h男高潮呻吟| 天天做夜夜爱爱爱| 野外性满足hd| 又色又爽又黄18网站| 88久久精品无码一区二区毛片| 免费精品在线视频| 99精品一区二区三区无码吞精| 青青操在线播放| 大黑人交xxx极品hd| 不卡的一区二区| 久久成人激情视频| 精品人妻一区二区免费| 777777国产7777777| 女人十八毛片嫩草av| 最新中文字幕视频| 丝袜熟女一区二区三区| 人妻精油按摩bd高清中文字幕| 欧美xxxx精品| 一级特黄曰皮片视频| 538国产视频| 美女黄色一级视频| 在线观看免费看片| 免费看一级大片| 国产一区第一页| 亚洲一级黄色录像| 欧美人与禽zoz0善交| 中文字幕 自拍| www.自拍偷拍| 久久人妻一区二区| 欧美精品欧美极品欧美激情| 国产精品成人99一区无码| 中文字幕欧美视频| 最好看的中文字幕| 免费观看黄网站| 亚洲欧美高清在线| 污污内射在线观看一区二区少妇| 亚洲精品国产成人av在线| 女性生殖扒开酷刑vk| 久久久久久久久久久久久女过产乱| 日韩毛片无码永久免费看| 亚洲精品成人无码熟妇在线| av直播在线观看| 成人黄色免费网址| 911国产在线| 极品魔鬼身材女神啪啪精品| 久久久久无码精品| 香港三级日本三级| 特级西西www444人体聚色| 国产视频不卡在线| 成人在线观看高清| 亚洲女优在线观看| 亚洲国产综合av| 香蕉久久久久久久| 少妇影院在线观看| 变态另类ts人妖一区二区| 免费观看污网站| 日本午夜在线观看| 美国精品一区二区| 久久久久久久久久久久| 无码国产69精品久久久久网站| 久久国产波多野结衣| 日本一二三不卡视频| 91成人在线免费视频| 亚洲观看黄色网| 中文字幕在线国产| 国产探花在线播放| 精品人妻一区二区三| 三级黄色录像视频| 2025国产精品自拍| 日本一区二区三区在线免费观看| av在线免费播放网址| www..com.cn蕾丝视频在线观看免费版 | 超碰caoprom| 亚洲黄色小说在线观看| 人妻少妇偷人精品久久久任期| 少妇高潮一区二区三区喷水| 欧美aaa级片| 少妇久久久久久被弄高潮| 久久发布国产伦子伦精品| 欧美图片自拍偷拍|