I cannot figure out how to get my code to do this without me pressing a key, I am a beginner and do not know how to implement this. Please help, here is my code
I am trying to get Robot1 and Robot2 to bounce off the walls going left and then bounce off the wall going right.
{
/**
* Act - do whatever the Robot1 wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
// Add your action code here.
}
}