a program to play Rush Hour. the board is supposed to look like this:



then You may assume the user enters either upper-case or lower-case input, with or without intervening spaces.
and The program ends when the red car touches the '>' character to the right of it.
the moves output must be kind of like this:

Your move -> gr1

Stop asking us to help you cheat on your school work asignments! Make an effort and post the code here with your errors, and then we may decide to help you. Until then, you are on your own! :-(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.