PRG1124 C Programming Principles Assignment

PRG1124 C Programming Principles Assignment

PRG1124 C Programming Principles Assignment

This PRG1124 C programming principles assignment will contribute 20% to your finalgrade.

You are required to complete the question below.

Name your C program file as “game_name1.c” (the team leader’s name without spaces and should not more than 20 characters, for example game_alex.c). If you use separate files for your main program and functions, then you need to zip all the files (.c and .h) in a .zip file and submit. You are required to:

  • Submit the softcopy of the C program file (*.c or *.zip) to Elearn at location ‘Assignment -> Assignment Submission’. (Note: only the ‘.c’ and ‘.h’ file, not the whole project). Only one submission required per team by the team leader.
  • Submit the hardcopy report to your lecturer, the hardcopy should include the printout of your code with the cover page and marking scheme, and all the testing output screenshots.

Question (20 marks)

You’re required to build a game ‘Find-The-Way-And-Avoid-The-Boom’ in C program that fulfill the below requirements/rules:

  • The mission of the player that plays the game is to find the way through a masked out map from entrance to exit without stepping on the boom.
  • The game should have a 20 rows x 50 columns map, which you can masked the  area with asterisks (*) or any other symbol of your choice.
  • The game should allow player to choose among 3 stages of difficulties. For example:
  • Beginner: 10booms
  • Intermediate: 50booms
  • Advance: 100booms
  • Once the game started, all the booms will be scattered randomly in the map. The booms should not be visible to the player.
  • Your map should have an entrance and an exit. You can indicate it with a symbol of your choice.
  • The player is required to navigate their steps by inputting the option of directions (left, right, top, and bottom) and number of steps they want to move. You’re required to keep the move within the boundary of the map.
  • Show the path that player navigate through by removing the mask in the map.
  • Each player will have 3 lives, a live will be deducted when the player step on a boom. Game will end when player has no remaining lives. The screen should display the number of live of the player while the game progress.
  • Or, game will end when player reach the exit without exhausted all their lives.
  • Once game ended, the screen should display the total number of steps the player has taken, and show the appropriate ending message, for example:
  • “You do not make it to the finish line” “You make it! Brilliant!”
  • If total steps < 20: display “You need to try harder!”
  • If total steps between 20-50: “You need a better luck”
  • If total steps between 50-80: “Not too bad”
  • If total steps > 80: “You have the talent”

The solution should have input data validation, and design using proper logic and data structure.

Get more information C Programming Assignment Help

You need to use multi-subscripted array and you are required to improve your code structure by using functions. You’re encouraged to add in any additional controls, validations or messages which you think are appropriate.

Followings are some sample screenshots of the game (you are allowed to have variances of display design, arrangement or style, as long as it fulfilled the game requirement as stated above).

Screenshot 1:Program starts, the map is masked out in asterisks (*) with entrance labeled with ‘S’ and exit labeled with ‘E’

c programming, programming assignment, web designing, online assignment help, OZ assignment help

Screenshot 2: Player input the direction and number of steps to move

  Screenshot 2
Screenshot 3:The path that player navigated through is un-masked
C Programming Principles
Screenshot 4:Game finished. Player successfully reaches the exit without stepping on any boom. If player step on any boom, game finished and you have to display the appropriate ending messages.

PRG1124 C Programming Principles Assignment

Enjoy programming!