4COM1037 Programming Assignment

Assignment Help Python Programming
Reference no: EM132503281

4COM1037 Programming Assignment - School of Engineering and Computer Science - University of Hertfordshire, UK

Assignment Title - Basic Game Development in Python (Doable it's a GAME in python)

This Assignment assesses the following module Learning Outcomes:

LO 1: Have knowledge and understanding of sufficient features of a high level programming language to develop solutions to simple programming problems;

LO 2: Have knowledge and understanding of the concepts of data declaration and operations, control flow (sequence, selection, iteration, subroutine call) and modularisation;

LO 3: Have knowledge and understanding of the terminology used in describing programs and programming.

LO 4: Design and implement solutions to simple programming problems in a given programming language;

LO 5: Execute, test and de-bug programs;

LO 6: Document programs to an agreed standard.

Basic Game Development in Python -

Requirements: For this assignment, you are tasked to develop a game called "Guess the Word", which allows two players to participate in turn. The game should contain the following key elements of play:

1. The game should start by prompting Player 1 to enter a word of their choice via the Python console screen for Player 2 to guess (assume that Player 2 looks away and does not see).

2. The Python console should then be cleared so as to hide the word from Player 2.

3. Player 2 must now guess the word by typing one letter into the Python console following a suitable prompt.

4. For each guess, the game needs to determine if the guessed letter is present in the word that has been set by Player 1. If the guess is incorrect, one element of an ambulance should be drawn onto the game/Turtle screen (see video for example of how elements may be drawn and further detail below).

5. The process then repeats from Step 3 (i.e. Player 2 is asked to enter another letter, assuming they have not used up their total number of guesses, as below).

6. Player 2 is allowed a total of 8 incorrect guesses, and hence will lose the game if all 8 attempts have been used.

7. As consistent with the above, the drawing of the ambulance should take 8 strokes in total to complete on the game/Turtle screen. Therefore, if the picture of the ambulance is fully drawn, this means Player 2 loses the game, and a message is displayed on the screen to confirm.

8. The game should provide a suitable graphical interface to enhance the user's experience and increase the game's appeal.

Several key aspects of information must be shown on the game/Turtle screen to aid the operation of the game (as shown in above example):

Each letter of Player 1's chosen word should be masked with a correct number of stars, *, to indicate the number of letters in the word (relevant letters will then become visible with a correct guess).

There should be a suitable message displayed to indicate if Player 2 has won or lost the game at the correct point (i.e. when all the letters of the word have been guessed correctly, or the number of attempts has run out).

Correct and appropriate drawing of the ambulance (a total of 8 strokes to match the number of attempts allowed).

Display incorrectly guessed letters.

Display the number of remaining attempts.

User input may take place in the Python console. The console should be cleared for the benefit of game play, i.e. at the beginning of each new game, and after Player 1 has entered their word. The game should repeat automatically on the completion of each instance (i.e. when Player 2 wins or loses).

Design Strategy - There may be numerous approaches to implement this program. Here is one possible pathway to cover essential points of development:

1. Write a simple main file. Display the welcome information in a user-friendly format, allowing Player 1 and Player 2 to input at the correct time, and clear screen where necessary.

2. Store the word that Player 1entered as a list.

3. Use a loop to repeatedly ask Player 2 to input a letter.

4. Search the letter that Player 2 has entered in the list (Point 2 above) and determine if there is a match for later use.

5. Add a counting feature that allocates a total of 8 guesses.

6. Determine and implement a drawing process for the ambulance.

7. Split the code for the drawing of the ambulance into 8 distinct parts according to key strokes (watch the demo video as an example) and call them as required depending on Player 2's progress.

8. Display relevant messages on the game screen.

9. Enhance the documentation of program.

Attachment:- Programming Assignment File.rar

Reference no: EM132503281

Questions Cloud

Are consolidate financial statements likely to more useful : Are consolidated financial statements likely to be more useful to the creditors of the parent company or the creditors of the subsidiaries?
When is consolidation considered inappropriate even : When is consolidation considered inappropriate even though the parent company holds a majority of the voting common shares of another company?
What is the effective annual percentage cost of the non-free : If the firm chooses to pay on time but does not take the discount, what is the effective annual percentage cost of its non-free trade credit?
How many days would the cash conversion cycle be lowered : Changes would not affect either sales or the costs of goods sold. If these changes were made, by how many days would the cash conversion cycle be lowered?
4COM1037 Programming Assignment : 4COM1037 Programming Assignment Help and Solution - University of Hertfordshire, UK - Assessment Writing Service - Basic Game Development in Python
Journalize minnesota?s issuance of shares of common stock : Journalize Minnesota?'s issuance of 1,500 shares of common stock for $15 per share. 2. Journalize Minnesota?'s issuance of 1,500 shares of preferred stock
Calculate the wacc for a large corporation and wondering : Calculate the WACC for a large corporation and wondering which tax rate should use. Is the "income tax rate" the one should be using?
What is the revenue in period : Kojak Construction manufactures beachfront, If Kojak builds a home and then sells it upon completion to a new customer, what is its revenue in Period 4?
How much expense should record in period : Who will make payment in the next 4 periods. If it applies the installment method of revenue recognition, how much expense should it record in period 2

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd