Question
I need help with a c++ robot program. Implement a system that simulates a robot finding gold: 1) Each one of the following objects should
I need help with a c++ robot program.
Implement a system that simulates a robot finding gold:
1) Each one of the following objects should be implemented as classes: Workspace, Robot, GoldBar, Bomb. Create objects from these classes, making them to communicate among themselves as necessary to integrate your OOD/OOP (Object Oriented Design/Programming).
2) The Workspace is a 4 x 4 square walking place see figure; All objects have their initial position generated by a uniform distribution; objects should not be initiated in the same square, i.e. initial position should not be repeated;
3) The Robot should walk around and avoid stepping on any square where a Bomb is randomly placed. The robot can move one square at time.
4) Robot should keep walking around for as long as there is still a GoldBar to be found and collected in the workspace.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started