Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Move the vehicles so that the Red car (RR) can exit the board to the right. Each move should be of the of the form:

Move the vehicles so that the Red car (RR) can exit the board to the right. Each move should be of the of the form: CDN where: C is the vehicle to be moved D is the direction (u=up, d=down, l=left or r=right) N is the number of squares to move it For example GR2 means move the G vehicle to the right 2 squares. Lower-case input such as gr2 is also accepted. Enter '-' to reset board, or 'x' to exit. - - - - - - - |G G . . . Y| |P . . B . Y| |P R R B . Y |P . . B . .| |O . . . T T| |O . F F F .| - - - - - - - 1. Your move -> gr1 - - - - - - - |. G G . . Y| |P . . B . Y| |P R R B . Y |P . . B . .| |O . . . T T| |O . F F F .| - - - - - - - 2. Your move -> pu1 - - - - - - - |P G G . . Y| |P . . B . Y| |P R R B . Y |. . . B . .| |O . . . T T| |O . F F F .| - - - - - - - 3. Your move -> OU2 *** Move was attempted, but couldn't be completed. *** - - - - - - - |P G G . . Y| |P . . B . Y| |P R R B . Y |O . . B . .| |O . . . T T| |. . F F F .| - - - - - - - 4. Your move -> fl3 *** Move was attempted, but couldn't be completed. *** - - - - - - - |P G G . . Y| |P . . B . Y| |P R R B . Y |O . . B . .| |O . . . T T| |F F F . . .| - - - - - - - 5. Your move -> tl2 - - - - - - - |P G G . . Y| |P . . B . Y| |P R R B . Y |O . . B . .| |O . T T . .| |F F F . . .| - - - - - - - 6. Your move -> tl1 - - - - - - - |P G G . . Y| |P . . B . Y| |P R R B . Y |O . . B . .| |O T T . . .| |F F F . . .| - - - - - - - 7. Your move -> yd3 - - - - - - - |P G G . . .| |P . . B . .| |P R R B . . |O . . B . Y| |O T T . . Y| |F F F . . Y| - - - - - - - 8. Your move -> bd2 - - - - - - - |P G G . . .| |P . . . . .| |P R R . . . |O . . B . Y| |O T T B . Y| |F F F B . Y| - - - - - - - 9. Your move -> rr3 - - - - - - - |P G G . . .| |P . . . . .| |P . . . R R |O . . B . Y| |O T T B . Y| |F F F B . Y| - - - - - - - *** Congratulations, you did it! *** Thank you for playing. Exiting... 

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions