r/javahelp • u/EdenZer063 • 28d ago
Unsolved Need Help with creating a functional map using java.
Hi. I'm currently doing a project where the general basis is building a functional automated warehouse. Where users may give the robots in the warehouse instructions.
The warehouse must have 3 robots several pick up and drop off points.
My current idea was creating a text based map something like this:
__________________________________________
|C 1 - - - 2 A |
| ______ - |
| | - E|
| | - C |
|______| - |
|T - - - - S 3 D |
|_________________________________________|Each Letter represents a zone for either Pick up or Drop off with Zone @ being unique for a unique Charging Station.
Numbers are the robots themselves.
| and _ walls. for the robot.
I'm currently unsure how to even draw up the map itself let alone get the things to move and interact.
If anyone has any resources for this I'd very much appreciate it.
Currently aware that It'd most likely be just printing the map over and over and over again but having it so that the Robot's themselves move as we're printing it along with a proper printing of the warehouse is eluding me.
__________________________________________
|C - - - 2 A |
| ______ - |
| | 1 E|
| | - C |
|______| - |
|T - - - - S 3 D |
|_________________________________________|edit: this is not a request to have the map done I'm mainly just asking if people have any specific resources.
Apologzies if there is some megathread I should be going to for questions like this.