Question: Please write code in Java... Objective: Write a game where you are a car, represented by the character X, trying to avoid pots holes in
Please write code in Java...
Objective: Write a game where you are a car, represented by the character X, trying to avoid pots holes in order to get home. As visibility is very low, the car can only move one space at a time, and if the space is a pothole, then the player loses, and the game is over. However, if they manage to reach home, the player won, and the game is over.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
