国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫(xiě)APSC 142、代做C/C++程序設(shè)計(jì)
代寫(xiě)APSC 142、代做C/C++程序設(shè)計(jì)

時(shí)間:2025-04-09  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



APSC 142 – Introduction to Programming for Engineers II
Objective:
Students will display their knowledge of all course material to build a complete computer 
program with a real-world application.
Problem:
The rules of the game are quite simple. The goal is for Pacman (the player) to collect all the dots 
on a map, while avoiding the enemy ghosts (AI) that are chasing you. The game is won when all 
the dots on the map have been collected. The game is lost when a ghost catches the player.
All characters in the game are bounded by that level’s map. The map contains walls (W) that 
restricts the characters from passing through them, creating a maze of sorts. The dots (.) are 
what need to be collected for the player to win the game. The characters can only travel 
through the paths between the walls. 
Below is the map that will be used in this project. The input text file will look slightly different, 
as it will show you the starting position for both Pacman and the Ghosts, and will not contain 
the outer walls. The primary map file is called “map.txt” and it is included in the starter code
which is available on OnQ.
APSC 142 – Introduction to Programming for Engineers II
Instructions:
Write a Pacman program in C that uses the following specifications:
• Read the map from a file called “map.txt” into an array created using malloc(). Make 
sure to implement correct memory management techniques for full credit. Your 
program must be able to read any map.txt file that is formatted correctly. There is an 
alternative “map2.txt” file included in the starter code, for example. Any file named 
map*.txt (where * can be any string) will be copied to the build directory to use upon a 
CMake reload.
• The map must contain exactly one Pacman (or player) ‘P’ and two Ghosts ‘G’. Their 
positions must be read from the map. If they aren’t present, or “map.txt” is not 
readable, the program must return appropriate error codes. The only other characters 
to be read from the map are ‘W’ for a wall, ‘.’ for a dot, or ‘ ‘ for an empty space. You 
should use #defines from defines.h to refer to these characters. All such characters in a 
map must have two spaces between them.
• Have the user enter an input of ‘w’, ‘a’, ‘s’, or ‘d’ that instantaneously moves the player
in that direction (up, left, down, right) if there is not a wall. You must get this input using 
the getch() function included in the starter code. If there is a dot in the new location, 
the player “eats” it and it is removed from the map.
• Implement 2 Ghosts (Enemies) to move around the map. If they can see the player 
(there are no wall tiles between them), have the ghost move toward the player.
o The ghosts are allowed to pass through each other.
APSC 142 – Introduction to Programming for Engineers II
o The ghosts should always move when the player does.
• You must implement some specific functions using the given prototypes and 
descriptions (these are listed below).
• The updated map must be printed to the console after every move. Unlike the map.txt 
file, which has two spaces between each symbol, you must print the map with one 
space between each symbol.
• You must write unit tests for your code. The tests must execute at least 85% of the lines 
of code included in the required functions.
• You must follow any other requirements written in the starter code, for example, using 
the provided global variables for storing map data (and no other globals).
• Use only the techniques and features taught in the course. If you use advanced or 
unexpected features, we may assume your code has been copied.
• When the win condition has been met, the following message must be printed:
o Congratulations! You win!
• When the loss condition has been met, the following message must be printed:
o Sorry, you lose.
Comments are mandatory for this project. Add comments as necessary for important parts of 
your code, such as function calls & definitions, conditions, and calculations to explain what the 
program is doing.
Global Variables 
Only the already specified global variables in the starter files are allowed.
The included globals will allow functions to access some commonly used variables without 
being passed as arguments. In practice, global variables should be used sparingly, so you are 
required to use only local variables for any other data.
Getting Started with the Starter Files
To get started, download the starter files in the zip file and unzip them into the directory you 
want to work out of. Then, in CLion, choose New Project in the project menu and make the 
following choices:
• In the left pane, choose C Executable.
• In the right pane, use the file picker to set the location to the directory where you
unzipped the starter files and leave the Language standard set to C11.
CLion will then pop up a modal dialogue that says Directory Is Not Empty and ask what
APSC 142 – Introduction to Programming for Engineers II
you want to do. Choose Create from Existing Sources. Then delete the main.c file from the 
project, as this will not be used and can create some confusion.
Mandatory Functions:
You must implement the following functions using the provided prototypes:
• int check_win(void);
• int check_loss(int player_y, int player_x, int ghosts_y[NUM_GHOSTS], int 
ghosts_x[NUM_GHOSTS]);
• char sees_player(int player_y, int player_x, int ghost_y, int ghost_x);
• char * load_map(char * filename, int * map_height, int *map_width);
• int is_wall(int y, int x);
• int move_player(int * player_y, int * player_x, char direction);
• int move_ghost(int * ghost_y, int * ghost_x, char direction);
• void print_map(void);
For each function, a detailed description of its expected behavior is provided in the comments 
in its respective header file: actor.h, game.h, and map.h. See those files and the main source 
file, apsc142project.c for details.
Other Important Details:
• Map details will be held in two different global maps: dot_map to hold where all the 
dots are and map that contains everything printed to the screen. Whenever you need to 
replace a dot in map (after a ghost moves over it), you will copy the contents from 
dot_map to map. Using the maps in this way is mandatory. The auto grader will not 
work if this convention is not followed.
o Note: It is a good idea to only rely on the map for tracking dots and walls. You 
will track of the position of the player and the two ghosts independently.
• The maps must be stored as 1D arrays. If you use a 2D array, you will not receive full 
marks. To use a 1D array (that is easy to allocate using malloc) like a 2D array, access 
elements using the index [(y * width) + x].
• To check if the win condition has been met, count the number of dots still in dot_map. 
This avoids the need to worry about if a ghost is covering a dot, since ghosts should not 
appear in dot_map.
• You can get a random integer between 0-3 with rand() % 4.
• The getch() function is available by including “colours.h”. Do not include <conio.h> 
yourself, as this will prevent your code from running on Gradescope.
APSC 142 – Introduction to Programming for Engineers II
• A good suggestion is to write tests before you implement your functions. This is called 
Test-Driven Development and it is a way to make sure your code does what you think it 
should, while ensuring good test coverage. Tests are required to get full marks in the 
final labs of this course.
Getting Terminal Emulation Working in CLion
When you first load the 
project starter code, you will 
want to modify the run/debug
configuration for the project
executable so that it emulates 
a terminal. This will cause the 
getch() function to behave as 
expected. To do this follow 
these steps (might vary 
slightly depending on your 
platform and CLion version):
 
Find the run/debug configuration dropdown to the left of the build/run/debug buttons in the 
top right corner of CLion. Click on “Edit Configurations…” at the bottom of that menu to bring 
up a modal dialogue. Select project under CMake Application on the left panel, then check the 
box next to Emulate terminal in the output console.
 
APSC 142 – Introduction to Programming for Engineers II
In-Lab Work
The final 4 lab sessions (weeks 9, 10, 11, 12) of the term will have deliverables for this project. 
The labs are designed so that you need to accomplish the first one or two tasks before you can 
move on to the next lab but it is “possible” to get by without question 3. If you do not complete 
a lab: it is highly recommended you finish all tasks before the next lab session. The lab tasks 
alone will not represent a fully completed project but do represent a passing grade. Any tasks 
that require you to modify functions have that function prototype written in bold text. The 
tasks will be released on a weekly basis but will follow what is given in the stater code. The 
general outline is:
1. Week 09: Print the map.
2. Week 10: Make the player move.
3. Week 11: Make the ghosts move.
4. Week 12: read a map from a file.
Submission Instructions:
Create your program using CLion, basing it on the provided starter code. Do not include any 
personal information (student number, name, etc.) in your submission. You will need to submit 
your code in a zip file containing all the .c .h .cpp and .txt files in your project. You must include 
all such files that appeared in the starter code to get full credit, even if you did not modify them 
from the starter code.
While developing your solution, you should submit your code to Gradescope, which will provide 
some automated test feedback, although your project will also be marked by a human. You can 
(and should) set up your group when you submit to Gradescope so that both members can see 
the feedback.
Refer to the project rubric in OnQ for a detailed breakdown of the grading criteria. Your 
submission must adhere to the project rules as outlined in the submission policy document for 
this course, which can also be found on OnQ. There is zero tolerance for plagiarism in this 
course. This auto grading software will automatically flag potential cases of plagiarism, which 
will be reviewed by the instructors.
Marking Rubric Summary
The official marking rubric can be found on OnQ, but it is summarized below. 
The project is marked out of 36 with each lab being worth 4 marks and the other 20 marks 
distributed as follows:
APSC 142 – Introduction to Programming for Engineers II
• [4] Required function implementation
◦ This tests that the required functions conform to their description in the starter files. 
This mark is based almost entirely on automated tests in Gradescope.
• [4] Test coverage of required functions
◦ This checks the percentage of lines of code in the required functions that are 
executed by your unit tests and is calculated almost entirely in Gradescope.
• [4] Code style and comments
◦ This checks that your code is well organized and documented properly, with good 
variable names. This is marked by a human.
• [4] Game functionality (calculated mostly in GradeScope)
▪ Winning and losing occur immediately when conditions are met.
▪ Valid maps are loaded correctly and displayed to the user.
▪ Ghosts chase player when they should.
▪ Dots disappear when they should and not when they shouldn't.
▪ Player and ghosts move and respect walls.
▪ Proper error codes are returned when maps are invalid.
• [4] Secure coding practices
◦ This checks that your program follows secure best practices and does not contain 
undefined behavior. This is calculated from a combination of GradeScope and 
manual checks.

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:代寫(xiě)COMP20007、代做C/C++編程設(shè)計(jì)
  • 下一篇:代寫(xiě)AI3013編程、代做Python設(shè)計(jì)程序
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢(qián)_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢(qián)_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場(chǎng)仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開(kāi)團(tuán)助手,多多出評(píng)軟件徽y1698861
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開(kāi)團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 豆包網(wǎng)頁(yè)版入口 破天一劍 目錄網(wǎng) 排行網(wǎng)

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

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    久久精品国产v日韩v亚洲| 国产精品永久免费视频| 欧美成ee人免费视频| 777久久精品一区二区三区无码 | 国内精品久久久久久久久| 久久99久久99精品| 天天综合中文字幕| 成人欧美一区二区三区黑人免费| 国产精品久久久久久久久久久久 | 国产白丝袜美女久久久久| 亚洲不卡中文字幕无码| 国产在线精品一区二区三区》 | 激情小视频网站| 国产精品偷伦视频免费观看国产| 欧美综合激情网| 日韩在线视频线视频免费网站| 日韩av电影中文字幕| 69精品丰满人妻无码视频a片| 亚洲色欲综合一区二区三区| 99www免费人成精品| 亚洲在线观看一区| 91传媒久久久| 日本一区二区三区视频在线观看| 91精品国产网站| 天堂v在线视频| 久久精品日产第一区二区三区精品版| 日韩aⅴ视频一区二区三区| 久久全球大尺度高清视频 | 欧美成人在线影院| 国产伦精品一区二区三区高清| 欧美日本亚洲视频| 成人免费毛片网| 大地资源第二页在线观看高清版| 国产福利视频一区二区| 欧美综合国产精品久久丁香| 国产精品三区在线| 美媛馆国产精品一区二区| 国产精品成av人在线视午夜片| 国产专区精品视频| 伊人久久大香线蕉成人综合网| 91精品中国老女人| 日韩视频在线免费播放| 久久精品视频在线| 国产男女激情视频| 春日野结衣av| 国产精品视频区1| 国产精品专区在线| 亚洲a级在线观看| 日韩亚洲欧美成人| 国产中文字幕视频在线观看| 亚洲综合成人婷婷小说| www.欧美日本| 日本www高清视频| 国产精品日韩av| 成人久久一区二区三区| 日韩区国产区| 欧美日本黄视频| 久久久久久久久久久久久久久久久久av | 精品国产一区二区三区无码| 9a蜜桃久久久久久免费| 日本久久久久亚洲中字幕| 国产精品毛片a∨一区二区三区|国 | 日本久久精品视频| 久久福利视频网| 91精品国产高清久久久久久| 欧洲精品视频在线| 国产99久久久欧美黑人| 国产成人福利网站| 国产天堂在线播放| 日韩av三级在线| 精品国产福利| 色av中文字幕一区| 99精品人妻少妇一区二区| 欧美日韩不卡在线视频| 亚洲欧美日韩不卡| 国产精品视频专区| 久久青青草综合| 国产日韩欧美视频| 欧美一区二区视频在线播放| 亚洲淫片在线视频| 久久激情视频免费观看| 97精品在线观看| 免费av网址在线| 日韩免费中文专区| 亚洲一区二区在线| 久久综合伊人77777| 久久久久久久久久久免费 | 欧美精品久久久久久久久久| 色偷偷av亚洲男人的天堂| 99久re热视频这里只有精品6| 狠狠干视频网站| 青青草影院在线观看| 午夜精品在线观看| 欧美精品久久久久a| 国产精品美女在线播放| 国产成人av网| 91精品国产99久久久久久| 国产一区在线播放| 欧美变态另类刺激| 日韩精品久久一区| 天堂√在线观看一区二区| 久国内精品在线| 久久亚洲影音av资源网| 国产精品丝袜高跟| 精品国产拍在线观看| 国产成人激情视频| 国产成人综合精品| 久章草在线视频| 97欧洲一区二区精品免费| 国产日韩在线视频| 黄色一级片av| 欧美在线免费观看| 日韩国产精品毛片| 日本a在线免费观看| 日本人成精品视频在线| 日韩在线三区| 日韩资源av在线| 日本中文字幕一级片| 日本一区不卡| 日韩小视频在线播放| 日韩免费观看视频| 日韩视频在线观看视频| 日韩精品欧美一区二区三区| 日本一区二区在线免费播放| 午夜视频在线瓜伦| 亚洲精品免费av| 日韩中文字幕二区| 日韩精品最新在线观看| 人人妻人人做人人爽| 欧日韩不卡在线视频| 欧美亚洲另类制服自拍| 欧美精品二区三区四区免费看视频 | www.国产一区| 国产精品免费看久久久香蕉| 国产精品人人妻人人爽人人牛| 国产精品久久亚洲7777| 久久成人免费视频| 国产a∨精品一区二区三区不卡| 欧美激情精品久久久久久变态 | 亚洲激情一区二区| 天天综合色天天综合色hd| 日本wwwcom| 精品欧美国产| 国产精自产拍久久久久久蜜| 99在线看视频| 久久精品人人做人人爽电影| 久久精品成人动漫| 久久香蕉国产线看观看av| 欧美激情xxxxx| 日韩专区第三页| 日韩久久在线| 免费看a级黄色片| 成人av色在线观看| 久久人人爽爽人人爽人人片av| 久久久久久久久久久视频| 国产精品国产亚洲精品看不卡15| 在线亚洲美日韩| 日本国产欧美一区二区三区| 加勒比海盗1在线观看免费国语版 加勒比在线一区二区三区观看 | 精品蜜桃一区二区三区| 亚洲天堂电影网| 日本精品一区二区三区视频| 海角国产乱辈乱精品视频| 国产精品一色哟哟| 久久久久这里只有精品| 不卡毛片在线看| 日韩av一级大片| 国精产品一区一区三区视频 | 久久精品久久久久久国产 免费| 国产精品高清免费在线观看| 亚洲欧美国产不卡| 欧美日韩激情视频在线观看| 国产女主播一区二区| 国产成人av影视| 一区二区三区视频在线播放| 日本a级片在线观看| 国产伦理久久久| 久久久久久久爱| 一区二区在线高清视频| 日韩伦理一区二区三区av在线| 国产欧美日韩一区二区三区| 国产v片免费观看| 色综合导航网站| 欧美日韩国产综合在线| 91免费版看片| 国产精品久久9| 日本www在线播放| 97精品一区二区三区| 久久中国妇女中文字幕| 日本不卡一区二区三区四区| 国产精自产拍久久久久久| 色婷婷av一区二区三区在线观看| 欧美精品久久久久久久| 精品欧美一区二区久久久伦 | 国产精品区二区三区日本| 亚洲高清在线观看一区| 国产欧美日韩视频一区二区三区| 久久久成人精品一区二区三区| 欧美精品性视频| 欧美一级电影久久|