Question: Write a C++ program that performs the following tasks: You are to create a game where Rey must evade Stormtroopers from the First Order! The



Write a C++ program that performs the following tasks: You are to create a game where Rey must evade Stormtroopers from the First Order! The game should take place in a 9 x 9 grid as shown below: Now starzing level 1. Don't let the FaTt Onder Copsuxe Rey Make your move. Enter & nusber from O tO 80:L The player should be prompted to enter a number related to a position on the board If the position is empty, place the letter 'R' in that position and increment the score by 1 point If the letter 'R' is already in the space they select, output a message to the user and do NOT increment the score If a Stormtrooper is occupying that position, the game is over! (more on this below) o o o Make your move, Enter a number from 0 to 80: 44 Your seore is: 2 Hake year more. Enter a number trcm o t.0: Hake yoar move Enter a nunber from o to 80: 22 You've already moved there. Try again Hake your move. Enter a sumber tron 0 to 801 27 o Every 5 points, the player advances to the next level
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
