久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

CHC5028代做、C/C++程序設(shè)計(jì)代寫

時(shí)間:2023-11-03  來源:  作者: 我要糾錯(cuò)


CHC5028代做、C/C++程序設(shè)計(jì)代寫
CHC5028 Software Development with
C/C++
Coursework
Important Dates
Week 5 (30/10/2023-3/11/2023): Mandatory demonstration of Exercise 1, feedback with
preliminary marks.
Week 10 (4/12/2023-8/12/2023): Mandatory demonstration of Exercise 2, feedback with
preliminary marks.
Week 12 (18/12/2023-22/12/2023): Final demonstration and 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:
A Change in the Weather, Spider and Web, Slouching Towards Bedlam, 北大俠客行
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 the
width of the console. If you get this error, remove the #include <windows.h> from
the top of the file, and edit the initWordWrap() function by deleting its contents and
replacing them with consoleWidth = 80; currentConsoleOffset = 0;. You
can change 80 here to any number that makes the output comfortably readable.
Exercise 1 (10% of the mark)
In the current system you can only move North. Extend the engine to allow movement in
all four compass directions.
• Add properties to the Room class for storing east, south, and west exits. These
properties will need accessor methods. (3%)
• Add code to the gameLoop method to understand the commands east, south, and
west (and the abbreviations e, s and w) and to handle them in a similar way to
north. (3%)
• Modify initRooms to create more rooms using the new exits in order to test your
code. (2%)
• Find a more elegant way of implementing these exits which does not repeat code.
[Hint: Traversing through map structures/strings, etc. can be considered.] (2%)
Exercise 2 (50% 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 class. It should contain at least a short name, a long
description, and a keyword (for the player to use when typing commands). (5%)
• Modify the Room class so that each Room includes a list of GameObjects in the
room. (2%)
• Modify the State class to include a representation of a list of GameObjects the
player is carrying, called inventory. (2%)
• Modify the State class to include a representation of the player’s physical
strength, called strength, which is initiated as 100. (2%)
• Modify the gameLoop method to reduce strength by 1 per minute, when
strength goes to 0, the program shall be terminated. (5%)
• Create a derived class FoodObject of GameObject class, it should contain an
integer-type property named energy which should be limited in a range of 1-
10. (5%)
• Modify the Room::describe() method to also print out the short names of all the
objects in the room, formatted as nicely as possible. (2%)
• Modify the gameLoop method to pay attention to the second word of the command
the player enters, if there is one. (5%)
• Modify the gameLoop command 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. (5%)
• Implement the player command get which, when typed with an object keyword, will
move 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. (5%)
• 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 already in the room, or does
not exist, etc. (5%)
• Implement the player command inventory which will print out the short names of
all the objects in the inventory. (2%)
• Implement the player command examine which, when typed with an object
keyword, will print out the long description of that object. (2%)
• 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. (3%)
• Modify initRooms to create some GameObjects and FoodOjects 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 above cannot be demonstrated.)
Exercise 3 (40% 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. They
should ask the user for a filename and then write or read the current game state, to or
from 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 not
guarantee “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 State object stores the current room, and objects, using pointers. Pointers
cannot safely be written to disk since addresses may be different when the program
is 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 but at the same time, the file does not have to be
just a text dump. This actually 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 section:
• 5% for basic correct structure of I/O.
• 5% for handling errors appropriately.
• 10% for the file format designed for storing the saved game.
• 10% for the code that performs the save.
• 10% for the code that performs the load.
Assessment Rules
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 marks
between code and viva.
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, regardless
of 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 be
justified in the viva. However, designs which substantially reduce efficiency or other
desirable properties without corresponding benefit will lose marks.
In addition to final submission in Week 12, there will be two mandatory feedback
sessions as follows:
• Week 5(30/10/2023-3/11/2023):
Exercise 1 will need to be demonstrated.
• Week 10(4/12/2023-8/12/2023):
Exercise 2 will need to be demonstrated.
During these two weeks, you must demonstrate your coursework and you will be given
a preliminary mark, and detailed feedback.
• The deadline for submission of the coursework is Week 12.
• In Week 12 you will also be required to demonstrate the final version of
your work, and verbal feedback will be given.
Exercise 2 needs to be demonstrated in Week 10, and not in Week 5, although general
queries can be discussed.
Exercise 3 does not need to be not demonstrated in Weeks 5 or 10, although you may
demonstrate it for feedback if you wish. Its contribution to the mark is not subject to the
cap, although it will be difficult to score highly on Exercise 3 if you did not complete
Exercises 1 and 2.
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 to
be 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 deadlines Week 5 (30/10/2023-3/11/2023):
Exercise 1 (Demonstration)
Week 10 (4/12/2023-8/12/2023):
Exercise 2 (Demonstration)
Formative feedback Week 5 (30/10/2023-3/11/2023):
Exercise 1 (Spoken interactive)
Week 10 (4/12/2023-8/12/2023):
Exercise 2 (Spoken interactive)
Summative deadline Week 12 (18/12/2023-22/12/2023)
Demonstration and Submission
Summative feedback Week 12 (18/12/2023-22/12/2023)
Spoken interactive
Final marks after assessment committees
Assignment Weighting 50% of 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 artifact specified in terms of C++ objects and their interrelations.
• Research the techniques for safe and efficient programming in C and C++.
請(qǐng)加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

標(biāo)簽:

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:指標(biāo)代寫代寫機(jī)構(gòu)進(jìn)倉副圖 指標(biāo)公式
  • 下一篇:代寫CE4703、C++設(shè)計(jì)編程代做
  • 無相關(guān)信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級(jí)風(fēng)景名勝區(qū)
    昆明西山國家級(jí)風(fēng)景名勝區(qū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗(yàn)證碼平臺(tái) 理財(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號(hào)-3 公安備 42010502001045

    久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

    99视频在线视频| 久久av高潮av| 一道本在线观看视频| 国产亚洲天堂网| 男人日女人的bb| 一区二区久久精品| 黄色av免费在线播放| 欧美日韩一道本| 日本一本中文字幕| 裸体大乳女做爰69| 五月天婷婷亚洲| 国模吧无码一区二区三区 | 精品国产av无码一区二区三区| www.精品在线| 欧美激情国产精品日韩| 国产美女主播在线播放 | 26uuu成人| av网站在线不卡| 国产精品无码一本二本三本色| 国产自产在线视频| 青草全福视在线| 91高清国产视频| 亚洲18在线看污www麻豆| 久久久久国产精品熟女影院| 欧美日韩不卡在线视频| dy888午夜| 国产又粗又猛大又黄又爽| 亚洲色图欧美自拍| 性欧美在线视频| 一本色道久久亚洲综合精品蜜桃| 久久精品视频91| 一区二区三区 日韩| www.日本xxxx| 一本色道无码道dvd在线观看| 日韩免费毛片视频| 男人舔女人下面高潮视频| www.日本xxxx| 9久久婷婷国产综合精品性色 | 青青草精品视频在线观看| 国产a级一级片| 人人干人人视频| 色播五月综合网| 天天摸天天舔天天操| 91制片厂免费观看| 国产九色porny| 少妇高清精品毛片在线视频| 日韩av片网站| 日本中文字幕在线不卡| 日本阿v视频在线观看| 99热在线这里只有精品| 搡女人真爽免费午夜网站| 国产三级生活片| 国产在线观看欧美| 国模吧无码一区二区三区| 国产原创精品在线| 影音先锋成人资源网站| 免费拍拍拍网站| 九九视频精品在线观看| 久久久一二三四| 99视频在线免费播放| 亚洲欧美日本一区二区三区| 黄色一级视频播放| 久久国产亚洲精品无码| 91小视频在线播放| 国产妇女馒头高清泬20p多| 免费日韩中文字幕| 午夜探花在线观看| 日韩欧美精品在线观看视频| 九九九久久久久久久| www一区二区www免费| 欧洲美女亚洲激情| 男人添女人下面高潮视频| 亚洲在线观看网站| 18禁网站免费无遮挡无码中文 | 超碰在线资源站| av免费看网址| 精品久久久99| 情侣黄网站免费看| 亚洲中文字幕无码一区二区三区| 亚洲狼人综合干| 日韩精品在线中文字幕| 亚洲免费成人在线视频| 天堂…中文在线最新版在线| 五月天丁香花婷婷| 国产精品丝袜久久久久久消防器材| 欧美性受xxxx黒人xyx性爽| 国内外成人激情视频| 日韩不卡视频一区二区| 黄色三级视频在线| 啊啊啊一区二区| 国产一区 在线播放| 在线观看日本www| 一级黄色香蕉视频| 日本网站免费在线观看| 黄色片免费在线观看视频| 男女污污视频网站| 午夜宅男在线视频| 男女av免费观看| 欧美国产日韩激情| 蜜桃视频一区二区在线观看| 久久久久久久久久毛片| 一区二区三区 欧美| 国产午夜福利视频在线观看| 久久亚洲a v| 三年中国中文在线观看免费播放| 天天干天天草天天| 天天操天天爱天天爽| 国产免费视频传媒| 国产男女激情视频| 免费观看日韩毛片| 亚洲熟妇av一区二区三区漫画| av在线com| 黄网站色视频免费观看| 国产精品h视频| 青青草原播放器| 久久人人爽av| 亚洲成人福利在线观看| 黑鬼大战白妞高潮喷白浆| wwwxxx黄色片| 日韩在线xxx| 欧美 日韩 国产 激情| 国产淫片av片久久久久久| 免费欧美一级视频| 黄色国产精品视频| 丁香啪啪综合成人亚洲| 欧美日韩在线成人| 国产精品视频分类| 蜜臀一区二区三区精品免费视频| 一级在线免费视频| 国产成年人视频网站| 三年中文在线观看免费大全中国| 在线视频观看91| 色婷婷一区二区三区在线观看| 亚洲欧美手机在线| 一级片免费在线观看视频| 一区二区三区四区久久| 国产女主播av| 日韩欧美不卡在线| 91精品91久久久中77777老牛| 青青草原av在线播放| 国产情侣av自拍| 久久黄色片网站| 亚洲欧美日韩网站| 久久国产精品免费观看| 欧美狂野激情性xxxx在线观| 欧美久久久久久久久久久久久| 亚洲中文字幕无码中文字| 国产情侣av自拍| www.欧美激情.com| 国产欧美久久久久| 免费观看日韩毛片| www.超碰97.com| 99久re热视频精品98| 水蜜桃色314在线观看| 成人免费视频久久| 国产精品无码乱伦| 我的公把我弄高潮了视频| 粗暴91大变态调教| 国产高潮呻吟久久久| 97超碰人人澡| 日本 片 成人 在线| 国产91在线亚洲| 久久人妻精品白浆国产 | 国产免费xxx| 男女高潮又爽又黄又无遮挡| 国产视频手机在线播放| 国产精品久久成人免费观看| 可以在线看的av网站| 在线看的黄色网址| 中国一级大黄大黄大色毛片| 欧美a在线视频| 性欧美18一19内谢| www.com毛片| 四虎成人在线播放| 欧美在线观看www| 日韩视频在线观看一区二区三区| 国产自产在线视频| 日日干夜夜操s8| 国产精品一线二线三线| 最新免费av网址| 奇米影视亚洲色图| 特黄视频免费观看| 人妻久久久一区二区三区| 天天操精品视频| 成人在线免费在线观看| 看一级黄色录像| 欧美性猛交久久久乱大交小说 | 国内外免费激情视频| 日韩专区第三页| 亚欧激情乱码久久久久久久久| 精品国产一区二区三区无码| 亚洲综合婷婷久久| 女人天堂av手机在线| 国产又粗又爽又黄的视频| 99福利在线观看| 一级性生活视频| 在线免费观看av的网站| 久色视频在线播放| 黄色网络在线观看| 亚洲精品性视频|