/
Bot.java
32 lines (28 loc) · 988 Bytes
/
Bot.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package maize;
/** Interface for logic and stuffs */
public interface Bot {
/** Put your control logic here
*
* @param view View matric from the perspective of the bot, orientated so
* the top of the matrix is facing the same direction as the
* bot.
* @param x X coord of the bot.
* @param y Y coord of the bot.
* @param o Orientation of the bot @see Orientation
* @param fx X coord of the finish.
* @param fy Y coord of the finish.
*
* @return Next move in form of Direction.####
*/
public int nextMove(boolean[][] view, int x, int y, int o, int fx, int fy);
/** A nice fluffy name for the bot, like 'Bob' or 'John'.
*
* @return Bot name.
*/
public String getName();
/** A description of how it works for telling folks.
*
* @return Bot Description.
*/
public String getDescription();
}