Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can i get help on code in C SHARP. 1D & 1P BOARD GAME You will create a one dimensional and single player console board

image text in transcribedimage text in transcribed

Can i get help on code in C SHARP.

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 TlleTypes: ENUM Empty, Food, Trap, Goal... (bonus for 2 more functioning tiles). Game Map: One Dimensional Array of TileTypes (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. HELPER / TECHNICAL GUIDE Map Setup: FOR I = 0 TO i = mapSize map[i] = Random TileThatIsNot Goal map[randomIndexInRange] = TileTypes. Goal (One goal tile but you can make multiple as you see fit) TileTypes) map - new TileTypes (10) Index 0 3 4 ON TileTypes TileTypes TileTypes Tilelypes TileTypes Thetype: TileTypes Tilelypes Tile Types 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 GoalTile player wins game is over; ELSE IF it is a TrapTile 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(): TileType 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_2

Step: 3

blur-text-image_3

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions