Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve the question below using C#, 1D & 1P BOARD GAME You will create a one dimensional and single player console board game with

Please solve the question below using C#,

image text in transcribedimage text in transcribed

1D & 1P BOARD GAME You will create a one dimensional and single player console board game with 4 different tiles (bonus if you add 2 more functional tiles). 1. Player rolls the dice 2. Move player to the target tile 3. Execute the corresponding tile logic Tile Types: ENUM Empty, Food, Trap, Goal... (bonus for 2 more functioning tiles). Game Map: One Dimensional Array of Tile Types (Decide the number of tiles yourself). Player Object (Struct or Class) Properties: health, position(index in the tiles array that the player is on)... Public Methods: IsAlive(). ApplyDamage(amount). Heal(amount)... WIN = PLAYER IS ON THE GOAL TILE. LOSE = PLAYER'S HEALTH IS LESS OR EQUAL THAN O. GAME OVER = WIN II LOSE (Win OR Lose). RULES There is no rule other than the one for plagiarism as stated at the top of this document. LATE SUBMISSION POLICY Our standard policy but penalties divided by 2. BONUS A. 2 Extra Tiles: 10 points. B1. Illustrate the 1D Map as console output with each move: 5-10 points depending on the artistic quality. B2. Illustrate the 1D Map as a rectangular loop (like the Monopoly game): 15 Points. You can either have B1 or B2 not both! So max bonus is A+B2 = 25 Points. Final Notes Test your program and make sure it is working correctly and JUST SEND THE.CS file with the naming rule given above. HELPER / TECHNICAL GUIDE Map Setup: FOR I = 0 TO i = mapSize mapli) = Random Tile ThatlsNotGoal map[randomlndexInRange] = Tile Types. Goal (One goal tile but you can make multiple as you see fit) TheTypes [] mapa new TileTypes : 101 index = 0 1 2 7 TieTypes Tiletypes Tiletypes Tiletypes Tiletypes TileTypes TileTypes TieTypes TileTypes TileTypes Gameloop WHILE !Gameover Roll the dice with enter as the input; Move the player to the target tile; IF the new tile the player is on is a Goal Tile player wins; game is over; ELSE IF it is a Trap Tile Apply damage to the player object; IF Player is dead player lost the game: game is over; ELSE IF... Main Methods for the Game Loop int RollDice(); Tile Type MovePlayerBy(int rolled)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

Please help me evaluate this integral. 8 2 2 v - v

Answered: 1 week ago