public class BlockingSokratesBDI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
BlockingSokratesBDI.MoveGoal
The goal to make moves until the board reaches a solution.
|
class |
BlockingSokratesBDI.MovePlan
Plan to make a move.
|
Modifier and Type | Field and Description |
---|---|
protected IBoard |
board
The puzzle board.
|
protected long |
delay
The delay between two moves (in milliseconds).
|
protected int |
depth
The depth of the current move.
|
protected java.lang.String |
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).
|
protected int |
triescnt
The number of tried moves.
|
Constructor and Description |
---|
BlockingSokratesBDI() |
Modifier and Type | Method and Description |
---|---|
void |
body(jadex.bridge.IInternalAccess agent)
Setup the gui and start playing.
|
protected void |
createGui(jadex.bridge.IInternalAccess agent)
Create the GUI (if any).
|
protected void |
print(java.lang.String text,
int indent)
Print out an indented string.
|
protected IBoard board
protected int triescnt
protected int depth
protected long delay
protected java.lang.String strategy
public void body(jadex.bridge.IInternalAccess agent)
protected void createGui(jadex.bridge.IInternalAccess agent)
protected void print(java.lang.String text, int indent)
text
- The text.indent
- The number of cols to indent.