首页 > 其他分享 >COMP1038 An airstrike planner game

COMP1038 An airstrike planner game

时间:2024-12-20 20:08:37浏览次数:3  
标签:code planner should will game program airstrike your exercise

COMP1038 Coursework 2 – An airstrike planner game

Introduction This is the second COMP1038 Coursework. It is worth 45% of the module mark. It

requires you to write an interactive, menu-driven program that acts as an airstrike gameand a report. The deadline for this exercise is 23:00 on Friday 20th of December 2024.

Read the entire document before beginning the exercise.

If you have any questions about this exercise, please ask in the Q&A forum on Moodle,after a tutorial session, or during the advertised office hours. Do not post your programor parts of your program to Moodle as you are not allowed to share your courseworkprograms with other students. If any questions require this exercise to be clarified, thenthis document will be updated and everyone will be notified via Moodle.

Submission

You must submit two files: a C source code file containing all your code for thisexercise and a report in PDF format describing the details of your program. The C codeacomment which contains your student ID number, username, and full name, of theform:// 6512345 zy12345 Joe BlogsThe file must compile without warnings or errors when I use the command

gcc -std=c99 -lm airstrikeplanner.c -o airstrikeplanner

This command will be run on our Linux server cs-linux. If it does not compile, for anyreason, then you will lose all the marks for testing (common reasons in the past havebeen submitting a file with the wrong filename or developing your solution on yourpersonal computer without having tested it on our Linux server). If the file compiles buthas warnings, then you will lose some marks for not correcting the warnings.

The report must be named report.pdf and should not exceed 500 words.Before you submit your source code file, you must complete the Coursework submission coversheet on Moodle.The completed source code file should be uploaded to the Coursework 2 Submission link on the COMP1038 Moodle page. You may submit as many times as you wishbefore the deadline (the last submission before the deadline will be used). After the

deadline has passed, if you have already submitted your exercise then you will not beable to submit again. If you have not already submitted, then you will be allowed tosubmit once.Late submissions: Late submissions will lose 5 percentage points per hour, rounded upto the next whole hour. This is to better represent the large benefit a small amountofextra time can give at the end of a programming exercise. No late submissions will beaccepted more than 24 hours after the exercise deadline. If you have extenuatingcircumstances, you should file them before the deadline.

Plagiarism

You should complete this coursework on your own. Anyone suspected of plagiarism willbe investigated and punished in accordance with the university policy on plagiarism(see your student handbook and the University Quality Manual). This may include amark of zero for this coursework.You should write the source code required for this assignment yourself. If you use codefrom other sources (books, web pages, etc), you should use comments to acknowledgethis (and marks will be heavily adjusted down accordingly). The only exception to this is 代写COMP1038  An airstrike planner game the example programs given in lectures and tutorials; you may use them, with or without modification, without penalty. You must not copy or share source code with other students. You must not worktogether on your solution. You can informally talk about higher-level ideas but not to alevel of detail that would allow you all to create the same source code.Remember, it is quite easy for experienced lecturers to spot plagiarism in source code. Ifyou are having problems, you should ask questions rather than plagiarize. If youare notable to complete the exercise, then you should still submit your incomplete program asthat will still get you some of the marks for the parts you have done (but make sureyour incomplete solution compiles and partially runs!).Task An airstrike planner game, developed by a computer science student, is available onMoodle. The game includes functionalities such as reading target files, searching fortargets, planning airstrikes, and executing airstrikes.Your task is to,

➢ Test the given program,

➢ Implement a C program with the same functionalities,

➢ Write a report detailing your work, and

➢ Submit both your program and the report.

Marking The marking scheme will be as follows:

  1. Tests (60%):Your program will be tested against several test cases to verify if it meets therequirements. These tests are secret, but examples include:Handling typical valid inputs,dealing with boundary values,Properly managing invalid inputs, andMaintaining a user interface identical to the given executable.If your program does not compile, you will lose all testing marks.
  1. Report (20%):A report detailing your program should be submitted along with the source code file. Inthe report, you should explain the main components, such as data structures,functions,and how they interact, and address the following questions:How do you determine whether a target file is valid or invalid?What is the minimum distance between targets?How do you test your program for memory leaks?
  1. Appropriate use of language features (10%):Your program should use the appropriate C language features in your solution. You can

use any language features or techniques that you have seen in the course, or you havelearned on your own, as long as they are appropriate to your solution. Examples of this might be:Have you broken your program down into separate functions?Are all your function arguments being used?If your functions return values, are they being used?If you have complex data, are you using structures?Are you using loops to avoid repeating many lines of code?Do you use dynamic memory allocation properly, e.g. no memory leak?

  1. Source code formatting (10%):Your program should be correctly formatted and easy to understand by a competent C

programmer. This includes, but is not limited to, indentation, bracketing,variable/function naming, and use of comments. See the textbook for examples ofcorrectly formatting programs.End Notes This exercise is designed to test your understanding of key programming concepts.Submitting a working program with a complete report and following proper coding

standards will maximize your marks. Good luck!

标签:code,planner,should,will,game,program,airstrike,your,exercise
From: https://www.cnblogs.com/MATH1131/p/18619102

相关文章

  • Python-基于Pygame的小游戏(天空之战)(一)
    前言:不久前接触了Python的游戏制作的相关第三方库,于是学习了pygame的相关内容,想制作一款基于pygame的小游戏。因为还不太熟悉游戏制作和pygame,部分内容我参考了《Python-从入门到精通》这本书。那么好,话不多说,我们直接进入今天的Python学习之旅-制作基于Pygame的小游戏(天空......
  • CF1889D Game of Stacks 题解
    很有趣的题目.思路我们考虑如果每一个栈里只有一个数怎么办。这个时候,我们会形成一个基环树森林。我们的操作相当于每走一步就删掉来时的路。那么每个点最终会停在离它最近的环上的点。我们可以发现一个性质,一个环是不会影响结果的,因为它总能走回来。所以我们可以不断的删......
  • 题解:AT_abc296_e [ABC296E] Transition Game
    题目传送门思路我们可以在环中任选一点,然后在环内可以转到另一个点。因为起点自由选择,所以环中每个点都可以到达,由此我们可以得知环上的所有点都是必胜点。我们把这个问题抽象为一张图,用拓扑排序判环即可。AC代码#include<bits/stdc++.h>usingnamespacestd;usingll=l......
  • Python-基于Pygame的小游戏(坦克大战-1.0(世界))(一)
    前言:创作背景-《坦克大战》是一款经典的平面射击游戏,最初由日本游戏公司南梦宫于1985年在任天堂FC平台上推出。游戏的主题围绕坦克战斗,玩家的任务是保卫自己的基地,同时摧毁所有敌人的坦克。游戏中有多种地形和敌人类型,玩家可以通过获取道具来强化坦克和基地。此外,游戏还支持......
  • GameMaker Studio开发:高级动作系统_GML脚本语言的高级运用
    GML脚本语言的高级运用在上一节中,我们介绍了基本的GML脚本语言及其在GameMakerStudio中的应用。本节将深入探讨GML脚本语言的高级运用,包括函数、变量、控制结构、面向对象编程和性能优化等方面。这些内容将帮助你更好地利用GML编写复杂且高效的代码,从而提升你的游戏开发能......
  • GameMaker Studio开发:高级动作系统_案例研究:高级动作系统在不同类型游戏中的应用
    案例研究:高级动作系统在不同类型游戏中的应用在上一节中,我们探讨了如何在GameMakerStudio中构建基础的动作系统。本节将通过具体案例研究,展示高级动作系统在不同类型游戏中的应用。这些案例将涵盖常见的动作游戏类型,如平台游戏、射击游戏、格斗游戏和冒险游戏,帮助你更深入......
  • GameMaker Studio开发:高级动作系统_敌人AI与行为模式设计
    敌人AI与行为模式设计在动作游戏中,敌人AI的设计和实现是游戏体验的关键因素之一。一个精心设计的敌人AI可以让玩家感到挑战,增加游戏的趣味性和可玩性。本节将详细介绍如何在GameMakerStudio中设计和实现高级敌人AI与行为模式。敌人AI的设计原则设计敌人AI时,需要考虑以下......
  • GameMaker Studio开发:高级动作系统_动作事件的高级应用:触发与响应
    动作事件的高级应用:触发与响应在上一节中,我们讨论了如何在GameMakerStudio中设置基本的动作事件。这一节,我们将深入探讨如何利用这些事件进行更高级的触发与响应机制,以实现更复杂的游戏逻辑。通过学习本节内容,您将能够:理解不同类型的事件及其触发条件。掌握如何在事件......
  • [AGC029D] Grid game题解
    这题很显然可以用贪心来解。由于先手不动一定会让局数更少,所以先手要能动就动。而后手一定是希望他的石子可以撞到一个障碍物上,这样先手就无法移动了,后手就可以让局数更少。因为先手一定会能动就动,所以后手只能走到横坐标大于纵坐标的障碍物上方。那就很简单了,我们只需要统计符......
  • Natural Number Game Sol
    https://adam.math.hhu.de/#/g/leanprover-community/nng4TutorialWorldLevel1/8:TherfltacticrflLevel2/8:therwtacticrw[h]rflLevel3/8:Numbersrw[two_eq_succ_one]rw[one_eq_succ_zero]rflLevel4/8:rewritingbackwardsrw[←one_e......