Build a game solution for alice-in-the-wonderland

Assignment Help Programming Languages
Reference no: EM131301161

You are required to complete the question.

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.

NOTE: Your submission must include a cover page with the name and signatures from all members in the group and the marking scheme. Report without a cover and marking scheme will not be accepted. Student without name and signature in the cover page will not be honoured the mark.

Question 1

Build a game solution for "Alice-in-the-Wonderland" in C program, where the game allows player to:
a) start a game:

The rules of game are:
i. The game should have a 15 rows x 20 columns map marked with asterisks (*). Indicate the entrance and exit with a symbol of your choice. In the map, there are items scattered randomly as below (you decide how many of each that you need):
- Life (#): the player will earn a life
- Poison (!): the player will lose a life
- Trap (O): the player will move backward a random number of steps (1 to 10).
- Ladder (H): the player will move forward a random number of steps (1 to 10).
Note: You can place certain items manually whichever you think appropriate (e.g. put more traps near to the exit)

ii. The mission of the player is to safely walk through the map from the entrance to the exit. If player overshoot the exit, it need to reverse back.

iii. The game should allow player to choose among 2 types of game:
- Player 1 and Computer
- Player 1 and Player 2

iv. The game should allow player to choose among 3 stages of difficulties. For example:
- Beginner: less poisons and traps
- Advance: more poisons and traps

v. Each player of the game will carry 5 lives from the start. The game will end when one of the below condition is met:
- The player who first reach the exit will win the game.
- The opponent who run out of life will lose the game.
.
vi. The players will take turn to throw a dice (with value 1 to 6) to decide how many steps to move forward. If the player is the computer, throw the dice automatically. You need to indicate the position of the players in the map with a symbol of your choice.

vii. Once the game is over, the screen should display the total number of steps each player has taken, and the remaining life of each player.

viii. The score is based on number of steps taken, the lesser the steps the better. If the score is within the top 5 scores, the score will be stored into a file.

Example of the game board once the game start:

S

*

*

*

O

*

*

*

!

*

*

*

*

*

*

*

*

*

O

*

*

*

*

H

*

*

O

*

*

*

*

*

*

!

*

*

*

*

*

*

*

*

*

*

*

#

*

*

!

*

*

*

*

O

*

*

*

#

*

*

*

*

*

*

*

*

*

H

H

*

*

O

*

*

*

*

*

*

*

*

O

*

*

*

!

*

!

*

*

*

*

*

*

H

*

H

*

*

O

*

*

*

*

*

*

*

*

*

*

*

*

*

H

*

*

*

*

*

*

!

*

H

*

*

*

#

*

*

O

*

*

*

*

*

#

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

H

*

*

*

*

*

*

*

*

*

*

*

!

O

*

*

*

!

*

*

*

*

H

*

*

*

H

*

H

O

*

*

*

*

H

*

*

*

*

#

*

*

*

*

!

*

*

*

*

*

*

#

*

*

*

*

*

O

*

*

*

*

O

*

*

*

*

*

!

*

*

*

*

*

H

!

*

*

*

*

*

*

*

H

*

*

*

*

*

*

*

*

*

*

*

*

*

*

H

*

!

*

!

*

*

#

*

*

*

!

*

*

*

*

*

O

*

!

*

*

*

*

O

*

*

*

*

*

*

*

O

*

*

#

*

*

H

*

O

O

O

*

H

O

*

O

*

E

b) display the top 5 scores:
List the top 5 scores in order.
c) reset the top 5 scores list:
Delete the top 5 scores list.
d) exit game:
Display "Thank you and see you next time".

The solution should have input data validation, and design using proper logic and data structure. You are required to use multi-subscripted array

You're encouraged to improve your code structure by using functions, add in any additional controls, validations or messages which you think are appropriate.

Variances of display design, arrangement or style are allowed, as long as it fulfilled the game requirement stated above.

Reference no: EM131301161

Questions Cloud

Determine the size of your estate : Determine the size of your estate by reviewing your personal balance sheet and filling out the table below.
What major areas does it include : What do we mean when we talk about the cost of quality? What major areas does it include?
Why do most economists oppose attempts to control prices : Why do most economists oppose attempts to control prices? Why does the government attempt to control prices anyway, in a number of markets?
Read the case and answer the below question : read the case and answer the below question.What would be done,Who would be involved,In what setting the intervention would occur,Which area the intervention is targeting, such as biological, psychological, or social factors.
Build a game solution for alice-in-the-wonderland : PRG1124: PRORAMMING PRINCIPLE The solution should have input data validation, and design using proper logic and data structure. You are required to use multi-subscripted array - You're encouraged to improve your code structure by using functions..
What is the price elasticity of demand for the logo t-shirt : Search YouTube for the video titled Black Friday 2006-Best Buy Line. Do the early shoppers appear to have elastic or inelastic demand on Black Friday? Explain your response.
Analysis of the size of the local market and growth : Write a brief report on external business information, including the following: An analysis of the size of the local market and growth A SWOT analysis and A description of the labour market background of the region
Traditional-mainstream and social media : Describe how the spotlight is shining squarely on the incident in Stage One. What are the key characteristics of this stage, and how are they manifested in both the traditional, mainstream, and social media? Include two recent examples to illustra..

Reviews

Write a Review

Programming Languages Questions & Answers

  Example on message-passing style

Write a procedure that produces independent first-in-first-out queue objects, using a message-passing style.

  Write a method to accepts string as parameter

Write a method called wordCount that accepts a String as its parameter and returns the number of words in the String. A word is a sequence of one or more nonspace characters

  Write error message and repeat input until a answer is found

Give the user specific instructions for what their answer should be (i.e. Y or N). If their answer is anything other than one of the specified choices, write an error message and repeat the input until a desired answer is found.

  Write program to accept specific team criteria

Here is the initial list of functional requirements: The program should be able to: Accept specific team criteria, Accept specific player criteria,Match players to teams based on criteria specified.

  Online car rental dynamically change its layout and styles

This assignment requires you to rewrite your HW2 (Online Car Rental) based on RWD techniques to make your website can dynamically change its layout and styles according to device screen sizes.

  Write a function calculating the length of the hypotenuse

(Hypotenuse Calculations) Write a function calculating the length of the hypotenuse of a right triangle (have two sides already). Determine the length of the hypotenuse for each of the given triangles.

  Add comments to the different sections.

Add comments to the different sections.

  Program to print percentage of correct answers

Program should print out percentage of correct answers of each students. At end of exam, program print percentage of students which passed exam.

  Program that calculate the average of a group of test scores

Write a program that calculate the average of a group of test scores, where the lowest score is dropped. It should use the following functions: void getScore() - should ask the user for a test score, store it in a reference parameter variable, and..

  Applying constraints in program

You will require to set up constants in program for given: number of square feet per square yard.

  Develop procedure to returns recent order information

Develop a procedure that returns the most recent order information for aparticular basket. This procedure must determine most recent stage entry from the BB_BASKETSTATUS table

  What is the average number of records they have

Which employees (by name) do not have degrees? (the "answer" is Jones, Green, Reagan, Washington)

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