Sheetal Roy

Sheetal Roy

  • NA
  • 1
  • 1.6k

c#

Jan 21 2015 12:41 PM
I want to make a game by using c# code. will u please help me with this query

Case Study 3: 4Strength


Funways Inc. is a company that develops games. The company specializes in developing games that run on Windows 8 devices. The marketing team of the company performs a market analysis and proposes that the company should come up with a new game that teaches planning and foresight to children in the age group of 7 to 12.
You work as a game app developer at Funway Inc. You are assigned a task to develop a game named 4Strength.

Envisioned System


The game can be played by two players. Player 1 has red coins, and Player 2 has green coins. The UI of the game consists of 42 rectangles. Each rectangle can contain a coin that is visible through a circular hole in the rectangle, as shown in the following figure.

The Square or Rectangle Containing Coins
The players take turns to occupy a vacant rectangle with their coins. However, in each column, only the bottom-most unoccupied rectangle can be occupied. This process continues until either of the following two conditions becomes true:
n Either of the players is vertically or horizontally able to occupy at least four vacant rectangles in a straight line.
n All the rectangles are occupied.
Being a game app developer, you need to ensure that the app provides the following functionalities:
n It is a game that involves two players.
n The player, Player 1, has red coins, and the player, Player 2, has green coins.
n The UI is made up of a grid of 42 rectangles placed in 6 rows and 7 columns.
n The player can occupy the lowest unoccupied rectangle on any column.
n The player can interact with the game by using a mouse or finger touch.
n The player occupies a vacant rectangle by clicking or tapping the rectangle.
n Player 1 will get the first chance to occupy a vacant rectangle.
n A rectangle occupied by Player 1 will be displayed as a red coin in the circular hole within the rectangle.
n A rectangle occupied by Player 2 will be displayed as a green coin in the circular hole within the rectangle.
n If Player 1 is able to occupy at least four rectangles in a straight line, Player 1 wins the game.
n If Player 2 is able to occupy at least four rectangles in a straight line, Player 2 wins the game.
n If none of them is able to occupy four vacant rectangles in a straight line and all the rectangles are filled, it is a tie.
n When the game gets over, the players should be given the option to start a new game.
n The game page contains a Help button on the UI that the player can click to view the rules of the game.
n The player should have an option to check the scores by clicking a button on the UI. Clicking on this button should display the scoreboard in the following format:

Games won by Player 1: ########
Games won by Player 2: ########
Number of times the game was a tie: ########
Number of times the game was canceled: ########


n The app allows the users to continue the game from where they left the last time.
n The app allows the users to cancel the current game.
n The app must provide a fast and fluid experience by using page transitions.
n The app must be resolution independent.
n The controls added in the app should have a consistent look and feel.
To implement the preceding functionalities, you need to perform the following tasks:
1. Analyze the app requirements.
1. Design the paper prototype, and then design the UI of the app.
2. Implement the specified functionality of the app.
3. Test the app.
4. Document the project.

Case Study 3: 4Strength

Funways Inc. is a company that develops games. The company specializes in developing games that run on Windows 8 devices. The marketing team of the company performs a market analysis and proposes that the company should come up with a new game that teaches planning and foresight to children in the age group of 7 to 12.
You work as a game app developer at Funway Inc. You are assigned a task to develop a game named 4Strength.
Envisioned System


 

The game can be played by two players. Player 1 has red coins, and Player 2 has green coins. The UI of the game consists of 42 rectangles. Each rectangle can contain a coin that is visible through a circular hole in the rectangle, as shown in the following figure.

The Square or Rectangle Containing Coins
The players take turns to occupy a vacant rectangle with their coins. However, in each column, only the bottom-most unoccupied rectangle can be occupied. This process continues until either of the following two conditions becomes true:
n Either of the players is vertically or horizontally able to occupy at least four vacant rectangles in a straight line.
n All the rectangles are occupied.
Being a game app developer, you need to ensure that the app provides the following functionalities:
n It is a game that involves two players.
n The player, Player 1, has red coins, and the player, Player 2, has green coins.
n The UI is made up of a grid of 42 rectangles placed in 6 rows and 7 columns.
n The player can occupy the lowest unoccupied rectangle on any column.
n The player can interact with the game by using a mouse or finger touch.
n The player occupies a vacant rectangle by clicking or tapping the rectangle.
n Player 1 will get the first chance to occupy a vacant rectangle.
n A rectangle occupied by Player 1 will be displayed as a red coin in the circular hole within the rectangle.
n A rectangle occupied by Player 2 will be displayed as a green coin in the circular hole within the rectangle.
n If Player 1 is able to occupy at least four rectangles in a straight line, Player 1 wins the game.
n If Player 2 is able to occupy at least four rectangles in a straight line, Player 2 wins the game.
n If none of them is able to occupy four vacant rectangles in a straight line and all the rectangles are filled, it is a tie.
n When the game gets over, the players should be given the option to start a new game.
n The game page contains a Help button on the UI that the player can click to view the rules of the game.
n The player should have an option to check the scores by clicking a button on the UI. Clicking on this button should display the scoreboard in the following format:

Games won by Player 1: ########
Games won by Player 2: ########
Number of times the game was a tie: ########
Number of times the game was canceled: ########


n The app allows the users to continue the game from where they left the last time.
n The app allows the users to cancel the current game.
n The app must provide a fast and fluid experience by using page transitions.
n The app must be resolution independent.
n The controls added in the app should have a consistent look and feel.
To implement the preceding functionalities, you need to perform the following tasks:
1. Analyze the app requirements.
1. Design the paper prototype, and then design the UI of the app.
2. Implement the specified functionality of the app.
3. Test the app.
4. Document the project.
 

Answers (2)