Question: Design a simple cricket game simulation in Assembly Language EMU 8 0 8 6 where the player can play as a batsman with limited balls
Design a simple cricket game simulation in Assembly Language EMU where the player can
play as a batsman with limited balls and attempt to score as many runs as possible. The game
will feature balls, and the player can hit the ball with varying results eg or runs
The player also has wickets lives and the game ends when the player runs out of balls or
loses both wickets. The player can quit the game at any time. XOR, MOVXZ and AND
instructions can't be used. EMU software
Tasks:
i Batting Simulation:
a The player will face balls and try to score runs. Each ball will have a random
outcome or runs or result in losing a wicket.
b Losing a wicket means the player loses a life. The game ends if both wickets are
lost.
ii Scoring:
c The player's total runs will be calculated as they play.
iii Outcome:
d Players' total score will be displayed after the game is over. The player will
receive a congratulatory message if they score above runs.
Hints:
Use an array to store possible run outcomes and wickets.
Use a stack to keep track of the player's score or wickets.
Use a macro or procedure to display the total score and the game outcome winlose
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
