Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CODE IN C# please Program in C# there is the skeleton of thr code but im unable to upload due to the limit of text

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
CODE IN C# please
Program in C# there is the skeleton of thr code but im unable to upload due to the limit of text on chegg post
Page ZOOM + TROELIT PROJECT 1 SIMPLE WAR GAME GOAL This goal of this project is to create a simple cui(Command Line Interface) game that takes text input and outputs the game resets (based on the inputs) to the screen. It is desgned to teach you how to successfully se objects. classes and inheritance. Portions of the code will be provided for you, but you must complete it DESCRIPTION Fresh out the provided framework. The game should do the following: Run until the user tells the program to suit. Accept user input processing correct input and grore garbage. Output well formatted text. The game should start by displaying the following text: "Welcome to Simple War Game! You are in a tank defending your territory from an invading army. The enemy has scattered this area with tank and missile truder Your job is to seek them out and destroy them Bach round both you and the enemy will exchange fire. You will have the choice to fire explosive charges which do more damage but are less accurate, or armor plerding rounds, which do less damage but are much more accurate Enemy tarkt have about the same armer at your, while their mustrids are more vulnerable but launch Very accurate and deadly minden Fortunately, you have a wry good medianic whole able to do full repair in between mygting You can exit the game at any prompt by hating escape DELIVERABLES: 1. Your modified Source Code and related files such that the project can be built and run successfully 2. A charge og detailing the steps you took to meet the new requirements. of 4 ZOOM + DEUVERABLES 1. Your modified Source Code and related files such that the project can be built and run success ully. 2. A change tog detailing the steps you took to meet the new requirements. IMPLEMENTATION As the game description says your game loop should do the following things every round: . Check to see if there is an enemy to fight, fnet:generate one. Display the current situation in the game. Display your stats and your entry's stats. Prompt the user for input to determine which kind of ammo to use Calculate round result if the player wins they should be prompted and asked if they wish to continue of the player loses they should be promoted and asked if they wish to restart. of the match is undecided, the next round should start without prompting, DETERMINING THE OUTCOME OF A ROUND Generate random number Decide if the new and/or player werehat. Deal appropriate damage 2 of 4 ZOOM + SAMPLE PSEUDO CODE entry point initialisation output one description the loop generate one round generate nemy output round description output prompt for player Weapon genernte Player Weapon procesa player attaek generate attack value it attack hits generate damage value apply damage to Enemy output attack message else output nioned message end process player attack process any attack generate attack value it attack hite generate damage value apply damage to Player output sttack message else output missed message and process Memy atteet st player and Enemy dies output both died mensage as it player dies output Player died mange elseit en die output Meny died og output prompt to play again it weee hoones to exit exit program heal player end gane loop 3 of 4 ZOOM + - Class Worksheet Base Classes GameObject string None Entity . int Health . int Armor . int Maxdealth void Attack (Entity) void Defendant, int) Weapon ant Attack steuet Damege Enenytan Enemy Fank) Enewyruck Enemy?ruck() Player Player() void Belecteapon (Wespotype) void Meal Weapons Explode Explode() talen Misslot) Vereing Piercing BO slu) Programes void Main() void OneDescensage() en Weapontype Page ZOOM + TROELIT PROJECT 1 SIMPLE WAR GAME GOAL This goal of this project is to create a simple cui(Command Line Interface) game that takes text input and outputs the game resets (based on the inputs) to the screen. It is desgned to teach you how to successfully se objects. classes and inheritance. Portions of the code will be provided for you, but you must complete it DESCRIPTION Fresh out the provided framework. The game should do the following: Run until the user tells the program to suit. Accept user input processing correct input and grore garbage. Output well formatted text. The game should start by displaying the following text: "Welcome to Simple War Game! You are in a tank defending your territory from an invading army. The enemy has scattered this area with tank and missile truder Your job is to seek them out and destroy them Bach round both you and the enemy will exchange fire. You will have the choice to fire explosive charges which do more damage but are less accurate, or armor plerding rounds, which do less damage but are much more accurate Enemy tarkt have about the same armer at your, while their mustrids are more vulnerable but launch Very accurate and deadly minden Fortunately, you have a wry good medianic whole able to do full repair in between mygting You can exit the game at any prompt by hating escape DELIVERABLES: 1. Your modified Source Code and related files such that the project can be built and run successfully 2. A charge og detailing the steps you took to meet the new requirements. of 4 ZOOM + DEUVERABLES 1. Your modified Source Code and related files such that the project can be built and run success ully. 2. A change tog detailing the steps you took to meet the new requirements. IMPLEMENTATION As the game description says your game loop should do the following things every round: . Check to see if there is an enemy to fight, fnet:generate one. Display the current situation in the game. Display your stats and your entry's stats. Prompt the user for input to determine which kind of ammo to use Calculate round result if the player wins they should be prompted and asked if they wish to continue of the player loses they should be promoted and asked if they wish to restart. of the match is undecided, the next round should start without prompting, DETERMINING THE OUTCOME OF A ROUND Generate random number Decide if the new and/or player werehat. Deal appropriate damage 2 of 4 ZOOM + SAMPLE PSEUDO CODE entry point initialisation output one description the loop generate one round generate nemy output round description output prompt for player Weapon genernte Player Weapon procesa player attaek generate attack value it attack hits generate damage value apply damage to Enemy output attack message else output nioned message end process player attack process any attack generate attack value it attack hite generate damage value apply damage to Player output sttack message else output missed message and process Memy atteet st player and Enemy dies output both died mensage as it player dies output Player died mange elseit en die output Meny died og output prompt to play again it weee hoones to exit exit program heal player end gane loop 3 of 4 ZOOM + - Class Worksheet Base Classes GameObject string None Entity . int Health . int Armor . int Maxdealth void Attack (Entity) void Defendant, int) Weapon ant Attack steuet Damege Enenytan Enemy Fank) Enewyruck Enemy?ruck() Player Player() void Belecteapon (Wespotype) void Meal Weapons Explode Explode() talen Misslot) Vereing Piercing BO slu) Programes void Main() void OneDescensage() en Weapontype

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

Students also viewed these Databases questions