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! .



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: Bow #tarting level 1. Don't 1rt th" rirn Order Capture Rey, 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 Hake your nove. Enter a nasber trom 0 to 801 4 Your score 151 Hake your move. Eater a-ber fr 0 to BO, 12 Hake your mOve. Encer a nunber from 0 to 801 27 Your score 2 Hake your move. Eater a nanbez fron 0 so s0: 12 You"ve already soved theze-Tey again Your sGore 381 R I 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
