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

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代做CHC5028、C/C++語言程序代寫
代做CHC5028、C/C++語言程序代寫

時間:2024-11-14  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



CHC5028 Software Development with
C/C++
Coursework
Important Dates
Week 10 (an available day in that week): Class test.
Week 12 (16/12/2024-20/12/2024): Project demonstration and viva assessment. Source 
codes file submission.
Background
“Text adventures”, now called “interactive fiction”, were among the first type of computer
game ever produced. These games have no graphics; the player reads the story of the
game in text, and decides what their character will do by typing commands at a prompt.
Although less popular now, text adventures are still played and created, and developed
into the original online RPGs (MUDs). You can play some sample modern text
adventures here:
Discworld MUD, BatMUD, 
These are playable online via a web browser. It is advisable to try out the games to get
an understanding of how the games behave.
For this coursework, you will be creating a simple game engine for a text adventure.
You are not required to write an actual adventure, only the back-end program code that
would support one. You will need to add some material to the program in order to test it,
but this may just be simple test material. You may add interesting descriptions or stories
to your program if you want to, but there are no marks for doing so.
You are provided with a CLion project containing a very simple game harness which
supports only two commands: going north (north or n), and quitting (quit). Extend it
by doing the exercises below. Note that the later exercises are less explicitly described
than the earlier ones, meaning that you must solve more problems yourself. This is
intentional.
The coursework is written to be built using gcc through CMake and CLion. It is not
recommended that you attempt to build it using Visual Studio or XCode.
Important: If you are building the sample coursework on a platform other than Windows, or 
on a machine which does not have the Windows API installed, you may get an error in the
file wordwrap.c. This file calls a Windows specific function to find thewidth of the console. If 
you get this error, remove the #include <windows.h> fromthe top of the file, and edit
the initWordWrap() function by deleting its contents andreplacing them with 
consoleWidth = 80; currentConsoleOffset = 0;. You can change 80 here to any
number that makes the output comfortably readable.
Task 1 (10% of the mark)
In the current system, you can only move North. Extend the engine to allow movement inall
four compass directions.
• Add properties to the Room class for storing east, south, and west exits. These
properties will need accessor methods.
• Add code to the gameLoop method to understand the commands east, south, andwest 
(and the abbreviations e, s and w) and to handle them in a similar way to north.
• Modify initRooms to create more rooms using the new exits to test yourcode.
• The rooms created should be constructed in a reasonable and logical relationship that 
makes the game playable and sensible.
Task 2 (15% of the mark)
A key part of most text adventure games is the ability to move objects around. Objects 
can be found in rooms and can be picked up and put down by the player. Add this 
capability to the game engine.
• Create a GameObject super class. It should contain at least a weight, and a
keyword (for the player to use when typing commands).
• Modify the Room class so that each Room includes a list of GameObjects in theroom.
• Create a derived class Weapon of GameOjbect class, the weight of each object of 
Weapon should be limited in a range of 5-10. It should contain a property named 
harm which should be limited in a range of 10-30. 
• Create a derived class Food of GameObject class, the weight of each object of Food
should be limited in a range of **5. It should contain a property named energy which 
should be limited in a range of **10. 
• Modify initRooms to create some GameObjects ((including food and weapon objects)
and put them in the rooms. Use this to test your program. (No marks are assigned 
specifically for this task, but without it, the ones following cannot be demonstrated.)
Task 3 (15% of the mark)
A key part of most text adventure games is the ability to fight with the NPC enemy. The 
NPC can be found in rooms and the player can fight with them. Add this capability to 
the game engine.
• Create a pure virtual EnemyObject class. It should contain at least a health, and a 
keyword (for the player to use when typing commands). It should contain a virtual 
method damage().
• Modify the Room class so that each Room includes a list of EnemyObject in theroom.
• Create a derived class Boss of EnemyObject class, the health of each object of 
Boss should be 100.
• Create a derived class Clowns of EnemyObject class, the health of each object of 
Clowns should be 30.
• Modify initRooms to create some EnemyObjects ((including boss and clowns 
objects) and put them in the rooms. Use this to test your program. (No marks are 
assigned specifically for this task, but without it, the ones following cannot be
demonstrated.)
• You need to consider different reasonable damage value for each different 
enemy objects’ damage() method.
Task 4 (5% of the mark)
• Modify the State class to include a representation of the player’s physical strength,
called strength, which is initiated as 100, and when strength goes to 0, the program 
shall be terminated. 
• Modify the Room::describe() method to print out the keywords of all theobjects in the 
room, formatted as nicely as possible.
Task 5 (30% of the mark)
• Modify the gameLoop method to pay attention to the second word of the commandthe
player enters, if there is one. The following commands can be used with the second 
word to search through a) objects in the current room,and b) objects in the inventory, for 
an object with a keyword matching the second word of the command the player typed. 
• Implement the player command get which, when typed with an object keyword, willmove 
that object from the current room list into the inventory. It should display appropriate 
errors if the object is not in the room, or the object is already in the inventory, or the 
object does not exist. 
• Implement the player command drop which, when typed with an object keyword, will 
move that object from the inventory into the current room list. It should display
appropriate errors if the object is not in the inventory or doesnot exist, etc. (5%)
• Implement the player command inventory which will print out the keywords ofall the
objects in the inventory. 
• Implement the player command eat which, when typed with a food object
keyword, will print out the player’s strength after adding the energy of the food 
object to the player’s strength, which should not exceed 100.
• Implement the player’s command fight which, when typed with an enemy 
object keyword if the enemy object exists in the room, will print out the enemy’s 
health that subtracts from the sum of harm of weapons carried by the player.
• The harm is mutual, the player’s strength should reduce the damage of the 
enemy existing in the room and be printed out. You need to make the damage()
in the Boss and Clowns class can be applied when the fight command is 
working. 
• You need to make the printout of each command execution demonstrate the 
explicit status of all objects in the room.
Task 6 (25% of the mark)
Since most players will not want to play an entire game at one sitting, most games include
save and load (or restore) commands. Implement these commands. Theyshould ask the
user for a filename and then write or read the current game state, to orfrom that file.
Note that the layout and descriptions of rooms, and the list and descriptions of objects,are not 
part of the game state because they do not change during the game. These should not be
included in the save file and saving them will lose marks.
A simple file open, load, and save does not guarantee full marks and may notguarantee
“a good mark”.
To this end, some important points to consider:
• The “game state” may also include the locations of objects the player has dropped in
rooms. Would it be a good idea to restructure how object locations are stored?
• The “game state” may also include the status of the player and enemy objects. Would it 
be a good idea to restructure these objects to the original situation?
• The State object stores the current room, and objects, using pointers. Pointers cannot
safely be written to disk since addresses may be different when the programis reloaded.
How can you enable this data to be safely saved and reloaded?
• It is worth ensuring to some degree that the user cannot readily cheat, or spoil the game, 
by reading or changing a save file. While it is not necessary to implement actual 
authentication or encryption, at the same time, the file does not have to be just a text 
dump. This makes it harder to parse when loaded. So, for example, saving the required 
indexes into a static array of strings may be a better way than saving the strings 
themselves.
Marking scheme for this task:
• 5% for basic correct structure of I/O.
• 10% for the file format designed for storing the saved game.
• 10% for the code that performs the save and the load.
Assessment Rules( Very important )
Code will be assessed by a demonstration and viva in week 12. You will be asked to
demonstrate your code and to explain how it works. There is no hard division of 
marksbetween code and viva. The marks given are mainly based on your performance 
in answering the assessor's questions and the accuracy and correctness of the 
corresponding answers.
If you cannot explain your code sufficiently well to satisfy the assessor that it is your 
own work, they have the right to award 0 marks for that exercise, regardlessof the 
quality of the code.
The fact that your code works does not guarantee full marks. All code is expected to 
also be readable, maintainable, and efficient. You are not required to exactly follow the steps
in the exercises above. Alternative designs are also acceptable if they can bejustified in the 
viva. However, designs which substantially reduce efficiency or other desirable properties 
without corresponding benefits will lose marks.
• The deadline for submission of the coursework is Week 12.
• In Week 12 you will also be required to demonstrate the final version ofyour
work, and verbal feedback will be given.
In addition to final submission and viva in Week 12, there will be two counselling in
the week 10 and week 11 tutorial periods. You also can make appointments with the 
tutor during the whole semester to 
Notice on presentation and submission
You do not need to give a presentation nor submit a report for either section of the
coursework. This coursework’s focus is on the quality of your final code and on your ability to
understand it, not your software engineering process (which is not expected tobe standard 
when you are learning the language).
Standard rules on plagiarism apply to this coursework.
The Code should be your own work and must not be copied from the internet or any 
other source. If you have difficulty with the coursework, you should approach your practical 
tutor in the first instance. Posting questions about the coursework on Stack Overflow, Quora, 
or similar sites may be treated as an incitement to plagiarism. Posting parts of your answer to 
the coursework on the publicly available internet where other students may access it will be 
treated asan incitement to plagiarism. Soliciting or obtaining answers to the coursework in
exchange for money and any other consideration will be treated as serious academic
misconduct. Asking for coursework answers from any party outside of the University is itself
attempted plagiarism and you should not do it; if that third party commits any of theoffenses in 
this section on your behalf, you may be held responsible, even if you were not directly aware 
they would do so (because you should not have asked them in the first place).
Assignment Data
Contact person Leon Liang, leon@zy.cdut.edu.cn
Learning outcomes See below.
Formative deadline Week 10 (2/12/2024-6/12/2024):
Coursework Class Test
Formative feedback Week 10 (2/12/2024-6/12/2024):
Counselling
Week 11 (9/12/2023-13/12/2023):
 Counselling
Summative deadline Week 12 (16/12/2024-20/12/2024) 
Coursework project demonstration and viva
Summative feedback Week 12 (18/12/202**2/12/2023)
Spoken interactive(viva)
Final marks after assessment committees
Assignment Weighting Coursework class test 20% of the module
Coursework project demonstration and viva 30% of the 
module
Learning Outcomes
• Understand the fundamental concepts of C and C++ programming for object
manipulation, data structuring and input/output control.
• Refine a problem specification into a collection of C++ classes.
• Create a software artefact specified in terms of C++ objects and their interrelations.
• Research the techniques for safe and efficient programming in C and C++.

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







 

掃一掃在手機打開當前頁
  • 上一篇:代寫CPTG1405、代做Python設計程序
  • 下一篇:代寫COMP2011J、Java程序設計代做
  • 無相關信息
    合肥生活資訊

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

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    91麻豆桃色免费看| 一区二区三区在线观看www| 国产精品久久久久久婷婷天堂| 日本视频一区在线观看| 91精品综合视频| 亚洲中文字幕无码不卡电影| 国产免费观看久久黄| 国产精品入口免费视频一 | 久久久久久97| 国产区日韩欧美| 久久资源免费视频| 黄色网在线视频| 国产精品视频在线免费观看| 欧美一级黑人aaaaaaa做受| 久久久久中文字幕2018| 日本一区二区不卡高清更新| 国产黄视频在线| 日本精品久久久久中文字幕| 国产成人综合一区| 日本国产在线播放| 色偷偷88888欧美精品久久久 | 国产日韩欧美影视| 精品国产一区二区三区在线| 国产日韩欧美91| 中文字幕综合在线观看| 成人中文字幕av| 亚洲自拍欧美另类| 91av在线国产| 日韩av影视| 久久精品国产欧美亚洲人人爽| 欧美在线欧美在线| 国产精品视频久| 国内精品久久久久久| 久久夜色精品国产欧美乱| 激情五月开心婷婷| 欧美大胆在线视频| 成人短视频在线观看免费| 午夜美女久久久久爽久久| 国产不卡视频在线| 欧美日韩一道本| 久久国产精品亚洲| 91美女片黄在线观看游戏| 日韩啊v在线| 国产精品免费一区二区三区在线观看| 精品一区在线播放| 亚洲一区二区三区毛片| 日韩一区在线视频| 国产主播在线一区| 亚洲一区久久久| 国产成人一区二区在线| 欧美韩国日本精品一区二区三区| 欧美巨猛xxxx猛交黑人97人| av动漫在线免费观看| 日韩极品视频在线观看| 久久中文字幕视频| 成人免费视频91| 日韩精品在线中文字幕| 欧美成人在线免费| 国产成人精品国内自产拍免费看| 激情久久av| 亚洲一区三区电影在线观看| 久精品国产欧美| 国产欧美一区二区三区四区| 婷婷久久青草热一区二区| 国产成人精品一区二区在线| 国产精品一区二区久久久久| 日韩免费在线视频| 精品国产免费一区二区三区| 国产成人综合久久| 国产日韩欧美另类| 日韩女优人人人人射在线视频| 久99九色视频在线观看| 久久久久久美女| 国产伦精品一区二区三毛| 日韩美女免费线视频| 一区二区三区国产福利| 国产精品日韩在线一区| 久久亚裔精品欧美| 国产美女久久久| 欧美专区在线观看| 亚洲精品影院| 久久中国妇女中文字幕| 国产成人鲁鲁免费视频a| 91精品国产自产91精品| 国产这里只有精品| 欧美综合一区第一页| 亚洲精品国产系列| 精品国产无码在线| 国产精品天天av精麻传媒| 777久久精品一区二区三区无码| 蜜桃91精品入口| 日本欧美精品在线| 午夜精品久久久久久久男人的天堂 | 国产精品无码一区二区在线| 91老司机精品视频| 国产日韩专区在线| 欧美精品v日韩精品v国产精品| 欧美一区二区三区精品电影| 一区二区三区在线观看www| 国产精品高潮呻吟久久av无限 | 97成人在线视频| 国产日韩欧美在线看| 欧美亚洲在线视频| 人人妻人人澡人人爽欧美一区双| 亚洲二区三区四区| 亚洲一区二区三区免费观看 | 蜜臀精品一区二区| 欧美日韩在线播放一区二区| 日本久久久久久久久| 亚洲 自拍 另类小说综合图区| 一区二区三区欧美成人| 国产精品成人免费电影| 国产精品久久久久久av| 久久九九国产精品怡红院| 久久久久久久久国产| 8050国产精品久久久久久| 99精品国产高清一区二区| 成人精品视频在线| 成人在线观看a| av不卡在线免费观看| 99热在线播放| 91精品久久久久| 国产福利一区视频| 久久精品一区二区三区不卡免费视频 | 亚洲综合色av| 亚洲字幕在线观看| 亚洲精品电影在线一区| 亚洲国产精品综合| 日本婷婷久久久久久久久一区二区| 亚洲一区二区在| 亚洲成熟丰满熟妇高潮xxxxx| 亚洲高清不卡一区| 日本久久久久久| 欧美性在线视频| 蜜桃成人在线| 成人a免费视频| 久久久免费观看视频| 久久国产精品一区二区三区四区 | 国产日产亚洲精品| 隔壁老王国产在线精品| 国产精品91免费在线| 久久国产精品 国产精品| 国产成人在线亚洲欧美| 久久久成人的性感天堂| 操日韩av在线电影| 亚洲熟妇av一区二区三区| 午夜午夜精品一区二区三区文| 日本一区二区三区免费看| 欧美亚洲视频在线观看| 国产欧美在线观看| 久久这里精品国产99丫e6| 国产成人无码精品久久久性色| 欧美成人久久久| 色综合666| 欧美成人精品欧美一级乱| 国产综合在线观看视频| 99在线视频首页| 久久精品日韩| 久久夜色精品国产欧美乱| 亚洲欧洲精品一区二区| 欧洲精品在线播放| 国产欧美日韩精品丝袜高跟鞋| 91久久精品国产91性色| 国产成人无码av在线播放dvd| 久久99久久久久久久噜噜| 日韩中字在线观看| 欧美牲交a欧美牲交aⅴ免费真| 国产精品永久免费在线| 国产成人+综合亚洲+天堂| 国产精品对白一区二区三区| 亚洲精品tv久久久久久久久| 欧洲久久久久久| 国产免费毛卡片| 深夜福利91大全| 亚洲国产精品一区在线观看不卡| 欧美在线www| 99国产在线| 国产精品国产福利国产秒拍| 欧美一区2区三区4区公司二百| 蜜桃传媒视频第一区入口在线看| 久久亚洲a v| 欧美黄网免费在线观看| 热久久视久久精品18亚洲精品| 国产伦精品一区二区三区视频孕妇| 国产a级黄色大片| 一区二区精品在线| 国内精品美女av在线播放| 97久久精品午夜一区二区| 久久久久北条麻妃免费看| 亚洲一区二区自拍| 国产亚洲精品网站| 久久久久久久久久久成人| 亚洲制服中文| 国产在线视频在线| 久久久精品视频在线观看| 午夜精品久久久久久99热软件 | 性色av一区二区三区在线观看| 黄色网络在线观看| 久色视频在线播放| 宅男av一区二区三区|