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 EMU8086 where the player can
play as a batsman with limited balls and attempt to score as many runs as possible. The game
will feature 5 balls, and the player can hit the ball with varying results (e.g.,0,1,2,4, or 6 runs).
The player also has 2 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. (EMU8086 software)
Tasks:
i) Batting Simulation:
a. The player will face 5 balls and try to score runs. Each ball will have a random
outcome (0,1,2,4, or 6 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 30 runs.
Hints:
Use an array to store possible run outcomes (0,1,2,4,6 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 (win/lose).
Design a simple cricket game simulation in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!