Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

EXERCISE ( O ) ) : Street Fighter Copy the program street _ fighter.c from the course account to your directory by typing ( make

EXERCISE (O)):
Street Fighter
Copy the program street_fighter.c from the course account to your directory by typing (make sure you type the
dot at the end):
$ cp dp1091/public_html/24T2/activities/street_fighter/street_fighter.c .
The program should allow the user to play a game of Street Fighter. The user should be able to customise the attack
power and attack key-binding (the assignment of a key on a keyboard to a command) for each fighter.
Each round, the program should prompt each fighter to attack. It should then print out the current health of each
fighter, continuing until one of the fighters has no health remaining. At this point it should print which player won the
game.
A fighter who is below 50% of their maximum health deals 50% more damage.
You are provided with
which contains the following fields:
: The attack power of the fighter. A fighter attack power will come from the user and will be between
1 and 10.
double health : The current health of the fighter. Fighter begin with a maximum health of 50.
char attack_command : The key binding for the attack command. Please help! I need to code struct with it but It won't working idk why.
image text in transcribed

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

MFDBS 89 2nd Symposium On Mathematical Fundamentals Of Database Systems Visegrad Hungary June 26 30 1989 Proceedings

Authors: Janos Demetrovics ,Bernhard Thalheim

1989th Edition

3540512519, 978-3540512516

More Books

Students also viewed these Databases questions

Question

What are the purposes of promotion ?

Answered: 1 week ago