Package jadex.micro.gobble
Class GobbleAgent
java.lang.Object
jadex.micro.gobble.GobbleAgent
- All Implemented Interfaces:
IGobbleGuiService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinformMove(Board.Move move) Inform about a move.voidinformNewGame(int rows, int cols, int invsize) Start a new game.static voidStart the example.jadex.future.IFuture<Board.Move> makeMove()Make a move.protected voidonStart()rankMoves(List<Board.Move> moves) Rank the moves.
-
Field Details
-
agent
protected jadex.core.IComponent agent -
board
-
subscribers
-
-
Constructor Details
-
GobbleAgent
public GobbleAgent()
-
-
Method Details
-
onStart
protected void onStart() -
informNewGame
public void informNewGame(int rows, int cols, int invsize) Start a new game.- Specified by:
informNewGamein interfaceIGobbleGuiService- Parameters:
invsize- The inventory size.row- The row.col- The col.
-
informMove
Inform about a move.- Specified by:
informMovein interfaceIGobbleGuiService- Parameters:
move- The move.
-
makeMove
Make a move.- Specified by:
makeMovein interfaceIGobbleGuiService- Returns:
- The move.
-
rankMoves
Rank the moves. -
main
Start the example.- Throws:
InterruptedException
-