Skip to main content
Became Hot Network Question
Minor changes for grammar and formatting. Clarification on how collisions would be treated
Source Link

enter image description here

Say I had the following 7x7 grid and two agents on the grid facing one another as shown. The agents can follow the following commands: moveForward, turnRight, turnLeft.

The agents have to follow the same set of instructions.

  • The agents can follow the following commands: moveForward, turnRight, turnLeft.
  • The agents have to follow the same set of instructions.
  • Any instruction that would result in two agents sharing the same square will be ignored.
  • Any instruction that would result in the two agents colliding/phasing through one another would be ignored.
  • Any instruction that would cause an agent to leave the board would be ignored by that agent. (e.g. if you gave the instructions turnRight and moveForward, the green would turn right and move forward but the purple would simply turn right and remain in place)

What set of instructions would get the green agent on the green square and the purple agent on the purple square? Any instruction that would result in two agents sharing the same square will be ignored, any instruction that would cause an agent to leave the board would be ignored by that agent , if you said turn right and move forward, the green would turn right and move forward but the purple would simply turn right and remain in place.

enter image description here

Say I had the following 7x7 grid and two agents on the grid facing one another as shown. The agents can follow the following commands: moveForward, turnRight, turnLeft.

The agents have to follow the same set of instructions.

What set of instructions would get the green agent on the green square and the purple agent on the purple square? Any instruction that would result in two agents sharing the same square will be ignored, any instruction that would cause an agent to leave the board would be ignored by that agent , if you said turn right and move forward, the green would turn right and move forward but the purple would simply turn right and remain in place.

enter image description here

Say I had the following 7x7 grid and two agents on the grid facing one another as shown.

  • The agents can follow the following commands: moveForward, turnRight, turnLeft.
  • The agents have to follow the same set of instructions.
  • Any instruction that would result in two agents sharing the same square will be ignored.
  • Any instruction that would result in the two agents colliding/phasing through one another would be ignored.
  • Any instruction that would cause an agent to leave the board would be ignored by that agent. (e.g. if you gave the instructions turnRight and moveForward, the green would turn right and move forward but the purple would simply turn right and remain in place)

What set of instructions would get the green agent on the green square and the purple agent on the purple square?

Source Link

Given a 7x7 grid, what moves need to be made to get two agents on their respective opposite sides of the grid on the diagonal?

enter image description here

Say I had the following 7x7 grid and two agents on the grid facing one another as shown. The agents can follow the following commands: moveForward, turnRight, turnLeft.

The agents have to follow the same set of instructions.

What set of instructions would get the green agent on the green square and the purple agent on the purple square? Any instruction that would result in two agents sharing the same square will be ignored, any instruction that would cause an agent to leave the board would be ignored by that agent , if you said turn right and move forward, the green would turn right and move forward but the purple would simply turn right and remain in place.