University of Portsmouth Wk 5 Programming a Game Paper i need someone to write me an assignment that includes python for foundation year international coll

University of Portsmouth Wk 5 Programming a Game Paper i need someone to write me an assignment that includes python for foundation year international college of Portsmouth the subject is programming concepts. i uploaded the file that contain the question. it doesnt need hard work. the assignment is about creating a version of Missile crisis as a computer game. all the details are in the file. 1
Programming Concepts Assignment (March 2020)
The purpose of this assignment is to show how well you can develop
a programming project. It will give you an opportunity to display your
knowledge of the Python programming language. This assignment is
marked initially with a maximum score of 100. It is then weighted to
contribute 25% to your overall module assessment.
Scenario: Missile Crisis
In the early 1960s the ‘Cold War’ between America and the Soviet Union
became the theme of some children’s games. In Britain one particular
example was Missile Crisis which became briefly popular until protests
from indignant parents, who claimed that it trivialised a dangerous political
threat to world security, led to the Home Secretary placing a ban upon
further sales. The manufacturer later went into voluntary liquidation.
It is hard now to understand the concern expressed. Missile Crisis
consisted simply of a colourful cardboard sheet representing two oceans
separated by a narrow strait. The oceans were shown as grids of squares.
The two players each initially occupied their own ocean and navigated a
small plastic aircraft carrier which they could move up, down, left or right
into a neighbouring square. Diagonal moves were not permitted. Each
player started at the far coastline of their ocean and alternated in taking
moves. However before moving their aircraft carrier they had to throw a
six on a dice. If they did not achieve a six the turn immediately passed to
the other player, who needed to do the same. (Some parents also
complained that the game was extremely boring and unimaginative.)
The object was to reach your opponent’s ocean by passing through the
strait before they managed to. The first player to do this was the winner of
this particular game, which then proceeded to the next highest level.
Players could agree on which level they wanted to begin and which level
they would stop. Levels ranged from 1 to 10.
What you have to do:
You will create your own version of Missile Crisis as a computer game.
You are given some code already and have to develop it further into a
game for the two players who move across an hour-glass shaped grid by
entering the letters U, D, L or R (for up, down, left or right). They take
alternate turns and have to throw six on a (computer) dice before they can
move. They begin at opposite sides of the grid and have to reach the
narrow middle section before the other in order to win. Before the game
starts they must agree at which level they begin and which level they
should end their game.
Here is the Python program code you will develop into a fully operational
version of Missile Crisis. Your code should only appear in main(). Do not
alter any of the code in the other functions. This is not necessary and will
not gain any marks. (You do not have to understand the code here.)
# Missile Crisis
def dice():
# Value returned is throw of dice
import random
score = 7
while (score > 6):
N = random.random()
score = int( N * 10) + 1
return score
def move(A, B, C):
# Values pased to local variables:
# A is game level
# B is current player position
# C is direction chosen
# Value returned is new player position
IR = A * 2 + 1
SV = 2 * A + 3
for i in range(IR):
MP = int (IR / 2)
DEC = -2 * i
INC = 4 * (i – MP) * (i > MP)
for j in range(JR):
if (N == B):
D = D + (C == “D”)
IR = A * 2 + 1
MP = int (IR / 2)
FVAL = – 2 * A
DVAL = 2 * (D – 2)
IVAL = ((D – MP) * 4 – 2) * (D > MP)
if (C == “D”):
U = -U
if (C == “U”):
if (C == “D”):
if (C == “L”):
if (C == “R”):
return E
def board(A, B):
# Values passed to local variables:
# A is game level
# B is sea array
IR = A * 2 + 1
SV = 2 * A + 3
for i in range(IR):
MP = int (IR / 2)
DEC = -2 * i
INC = 4 * (i – MP) * (i > MP)
IND = i – 2 * (i – MP) * (i > MP)
for j in range(IND):
print chr(32),
for j in range(JR):
if (i == 0 or i == IR – 1):
B[C] = 35
if (j == 0 or j == JR – 1):
B[C] = 35
print chr(B[C]),
def main():
sea = [126] * 717
# This section lets you test board() function
# L = input(“Enter level “)
# board(L, sea)
# This section lets you test dice() function
# print(“You threw a “),
# print dice()
# This section lets you test move() function
# L = input(“Enter level “)
# P = input(“Enter position “)
# D = raw_input(“Enter direction “)
# print(“New position is”),
# print move(L, P, D)
Here is a screen shot showing a typical screen display produced by the
program. In this test run only one player was taking part. Your program
will show the paths followed by two players. You can choose any two
letters to indicate the players. Neither needs to be a letter A!
Important details:
1. Your solution should be written as a Python program employing
functions, with variables being passed and returned.
2. The code must be original and not copied from anywhere else.
3. Do not use object-oriented methodology.
4. After your work is submitted you might be interviewed in order to
explain sections of your program.
You must upload your work to ‘Turnitin’ by 4.00pm on Friday in Week 10
of the semester.
The following are the four sections of your work which you will submit.
They should form a single Word document, with relevant screen captures.
Section A: Explanation of the problem (30 marks)
In this section you do NOT submit any algorithms or Python code. Instead
you should explain informally, in ordinary language, how your computer
program will allow your computer game to achieve the objectives
described above. You should describe carefully all the ideas you have had
for how the program will be made to work. Although you will not present
any code in this section you will talk about programming constructs like
for and while loops, array locations and subscripts, calling functions,
passing and returning variables etc.
Section B: Algorithms required (10 marks)
Select any one of the algorithms needed for your program and formally
represent it as a flowchart.
Section C: Program code (50 marks)
Here you give your program listing. Your Python code should show that
you understand how a program can achieve the following.
Variables and assignment
Subscripted variables (arrays)
Conditional statements
Unconditional loops
Conditional loops
Use of functions
Validation of user input
Section D: Testing of your solution (10 marks)
You should present a minimum of two screen shots indicating that you
have tested your program. Comment on what the screen shot contains
and how this relates to a section of the program code you have given in
Section C.
Computer software is often made available for use before it is
completely working! Therefore you are not necessarily expected to
produce fully operating code. Instead marks will be awarded to how
well you have attempted the various tasks described above.
Section A: Learning Outcomes (LO) to be assessed
LO Description
Comment on LO
That computer programs are designed
to solve problems
The success of a program depends
on how well the problem is
understood and then broken down
into identifiable components
A programmer must ensure his
program can be easily understood by
other programmers with appropriate
structure and annotation.
Ability to troubleshoot basic (hardware
and) software issues
Abstraction of complex problems into
manageable elements.
LO Achieved:
Section B: ILSC Study Skills Incorporated and Tested
Development (Selfreflection, responding
to feedback)
Presentation Skills
Flowchart in Section B, Screen capture in Section D
Listening Skills
Self – Directed Study
Working on versions of main()
Writing Skills
Analysis and Problem
Creating appropriate loops and exit conditions
Planning Aspects
(Structure, Content
Working with Others
Marking scheme
Section A: Explanation of the problem (30 marks)
After all of the scripts have been read initially (in order to judge how the
specific cohort of students has interpreted the problem) a detailed marking
scheme will be written for Section A. This will award 3 marks for each
relevant explanation of aspects of i) algorithm design ii) programming
concepts employed. There is a maximum of 30 for this section.
Section B: Algorithms required (10 marks)
Only ONE of these criteria will be relevant:
A: Relevant flow chart – 4 marks
B: As above plus (mostly) correct symbols – 7 marks
C: As above plus (mostly) correct logic – 10 marks
Section C: Program code (50 marks)
5 marks awarded for each of the following marking criteria up to a
maximum of 50:
A: Input of data from user
B: Display of text by program
C: Assignment of values to variables
D: Use of subscripted variables (arrays)
E: Inclusion of explanatory comments
F: Use of conditional structure
G: Use of loop structure
H: Passing a value to a function
I: Returning a value from a function
J: Validation of user input
Section D: Testing of your solution (10 marks)
Any of these criteria will be relevant:
A: First screen shot – 3 marks
B: Discussion of first screen shot – 2 marks
C: Second screen shot – 3 marks
D: Discussion of second screen shot – 2 marks

Purchase answer to see full

Don't use plagiarized sources. Get Your Custom Essay on
University of Portsmouth Wk 5 Programming a Game Paper i need someone to write me an assignment that includes python for foundation year international coll
Just from $13/Page
Order Essay
Homework On Time
Calculate the Price of your PAPER Now
Pages (550 words)
Approximate price: -

Why Choose Us

Top quality papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional academic writers

We have hired a team of professional writers experienced in academic and business writing. Most of them are native speakers and PhD holders able to take care of any assignment you need help with.

Free revisions

If you feel that we missed something, send the order for a free revision. You will have 10 days to send the order for revision after you receive the final paper. You can either do it on your own after signing in to your personal account or by contacting our support.

On-time delivery

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & confidential

We use several checkers to make sure that all papers you receive are plagiarism-free. Our editors carefully go through all in-text citations. We also promise full confidentiality in all our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.


Essay Writing Service

You are welcome to choose your academic level and the type of your paper. Our academic experts will gladly help you with essays, case studies, research papers and other assignments.


Admission help & business writing

You can be positive that we will be here 24/7 to help you get accepted to the Master’s program at the TOP-universities or help you get a well-paid position.


Editing your paper

Our academic writers and editors will help you submit a well-structured and organized paper just on time. We will ensure that your final paper is of the highest quality and absolutely free of mistakes.


Revising your paper

Our academic writers and editors will help you with unlimited number of revisions in case you need any customization of your academic papers