I need very small java code. I need SOKOBAN in very very simple way.
1. It can be with Array, ArrayList or HashMap
2. It must work in console, not GUI
3. When I start the program I must give
- the size of array;
- the number and the place of walls;
- the starting position of Robot (socoban), walls and the endpoint and the cub that socoban will move;
4. After entering the initial data the program must describe the way in which Robot goes to the target or moves the robot to push the cube to the target. The movement of the robot is accomplished by the following rules:
1 ) The robot can see ( realize ) only about his boxes ;
2 ) A robot must only knows its initial position , the position of the cube and this
target - everything else ( empty fields or obstacles) must be
conscious during the movement ;
3 ) The robot moves one square per turn , by allowing movement of
left, right , up and down . Diagonal movement is not allowed ;
4) When pushing the cube robot takes its position.
5 ) The cube always just push in the direction of movement of the robot - NOT
allows pulling cube (back) or drag (left or right of robot ) ;
6 ) If you need turn at pushing the cube should be done by the robot approach ,
so that it can be pushed into the desired direction of the cube ;
I should not have to play with the robot, he must analyze the map to find the cube and the target and pushed the cube to the target by himself, alone
Everything must be write on JAVA with full comments
17 freelancere byder i gennemsnit $30 for dette job
I can done it in some time, just need some detailed explanation, it can be in pictorial form by image of sketch on paper or by conversation. Chat would be enough too.