New car parking game

A new car parking game! Here's a simple text-based game to get you started:

Car Parking Challenge

You're a new driver trying to park your car in a busy city. Your goal is to park your car in one of the available parking spots without hitting any obstacles or other cars.

Gameplay

  1. I'll describe the parking lot and the obstacles in it.
  2. You'll tell me the direction you want to move your car (up, down, left, right, or stay).
  3. Based on your input, I'll update the parking lot and let you know if you've hit any obstacles or reached a parking spot.
  4. Keep playing until you've parked your car successfully or run out of attempts.

Let's start!

You're standing in front of a parking lot with 5 parking spots. The lot is divided into a grid with 5 rows and 5 columns. The parking spots are marked with a "P". There are also some obstacles like trash cans, fire hydrants, and other cars.

Here's the initial state of the parking lot:

 1 | 2 | 3 | 4 | 5
  ---------
 6 | 7 | 8 | 9 | 10
  ---------
11 | 12 | 13 | 14 | 15
  ---------
16 | 17 | 18 | 19 | 20
  ---------
21 | 22 | 23 | 24 | 25

Your car is currently in position (1, 1), which is the top-left corner of the lot.

What do you want to do?

Type 'up', 'down', 'left', 'right', or 'stay' to move your car.