Gets the current in this round for this RatBot. () <RatBotActor> Gets the sensor grid for this RatBot. () Gets the x int coordinate within the maze of this RatBot. () Gets the y int coordinate within the maze of this RatBot. (int dir) Calculates the number of spaces this RatBot int move in a given direction before it encounters a wall or Rat blocking its path. (int dir) Determines whether or not a boolean RatBot can see a Cheese in a given direction. (int dir) Determines whether or not a boolean RatBot can see a Rat in a given direction. (int dir) Sets the direction void that this RatBot thinks it is facing. (java.lang.String in) void Sets the name of this RatBot. methods are provided in the RatBotsGrid class.
Gets the current in this round for this RatBot. <RatBotActor> () Gets the sensor grid for this RatBot. int () Gets the x coordinate within the maze of this RatBot. int () Gets the y coordinate within the maze of this RatBot. int (int dir) Calculates the number of spaces this RatBot move in a given direction before it encounters a wall or Rat blocking its path. boolean (int dir) Determines whether or not a RatBot can see a Cheese in a given direction. boolean (int dir) Determines whether or not a RatBot can see a Rat in a given direction. void (int dir) Sets the direction that this RatBot thinks it is facing. void (java.lang.String in) Sets the name of this RatBot. methods are provided in the RatBotsGrid class.
RatBots14Guide.docx