Package jadex.bdi.puzzle
Class SokratesV3Agent
java.lang.Object
jadex.bdi.puzzle.SokratesV3Agent
- Direct Known Subclasses:
BenchmarkAgent
Puzzle agent tries to solve a solitair board game
by recursiveky applying means-end-reasoning.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
The goal to make moves until the board reaches a solution.class
Plan to make a move. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IBoard
The puzzle board.protected long
The delay between two moves (in milliseconds).protected int
The depth of the current move.protected String
The strategy (none=choose the first applicable, long=prefer jump moves, same_long=prefer long moves of same color, alter_long=prefer long move of alternate color).protected int
The number of tried moves. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
board
The puzzle board. -
triescnt
protected int triescntThe number of tried moves. -
depth
protected int depthThe depth of the current move. -
delay
protected long delayThe delay between two moves (in milliseconds). -
strategy
The strategy (none=choose the first applicable, long=prefer jump moves, same_long=prefer long moves of same color, alter_long=prefer long move of alternate color).
-
-
Constructor Details
-
SokratesV3Agent
public SokratesV3Agent()
-
-
Method Details
-
body
public void body(jadex.core.IComponent agent) Setup the gui and start playing. -
createGui
protected void createGui(jadex.core.IComponent agent) Create the GUI (if any). -
print
Print out an indented string.- Parameters:
text
- The text.indent
- The number of cols to indent.
-