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 TypeMethodDescriptionvoid
informMove
(Board.Move move) Inform about a move.void
informNewGame
(int rows, int cols, int invsize) Start a new game.static void
Start the example.jadex.future.IFuture
<Board.Move> makeMove()
Make a move.protected void
onStart()
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:
informNewGame
in interfaceIGobbleGuiService
- Parameters:
invsize
- The inventory size.row
- The row.col
- The col.
-
informMove
Inform about a move.- Specified by:
informMove
in interfaceIGobbleGuiService
- Parameters:
move
- The move.
-
makeMove
Make a move.- Specified by:
makeMove
in interfaceIGobbleGuiService
- Returns:
- The move.
-
rankMoves
Rank the moves. -
main
Start the example.- Throws:
InterruptedException
-