org.eviline.ai
Interface AIKernel

All Known Implementing Classes:
DefaultAIKernel

public interface AIKernel


Method Summary
 Decision bestFor(Context context)
          Determine the shape that would be best for the player
 Decision bestFor(Context context, ShapeType type)
          Determine the best way for a player to play a single shape.
 Decision bestFor(Field inPlayField)
           
 Decision bestFor(QueueContext context)
          Determine the best way for a player to play a particular queue of shapes.
 Fitness getFitness()
           
 Decision planBest(Context context, Decision defaultDecision)
          Determine the shape that would be best for the player
 Decision planWorst(Context context, Decision defaultDecision)
          Determine the shape that would be worst for the player
 void setFitness(Fitness fitness)
           
 Decision worstFor(Context context)
          Determine the shape that would be worst for the player
 

Method Detail

bestFor

Decision bestFor(QueueContext context)
Determine the best way for a player to play a particular queue of shapes.

Parameters:
context -
Returns:

bestFor

Decision bestFor(Context context,
                 ShapeType type)
Determine the best way for a player to play a single shape.

Parameters:
context -
type -
Returns:

bestFor

Decision bestFor(Field inPlayField)

bestFor

Decision bestFor(Context context)
Determine the shape that would be best for the player

Parameters:
context -
Returns:

planBest

Decision planBest(Context context,
                  Decision defaultDecision)
Determine the shape that would be best for the player

Parameters:
context -
defaultDecision -
Returns:

worstFor

Decision worstFor(Context context)
Determine the shape that would be worst for the player

Parameters:
context -
Returns:

planWorst

Decision planWorst(Context context,
                   Decision defaultDecision)
Determine the shape that would be worst for the player

Parameters:
context -
defaultDecision -
Returns:

getFitness

Fitness getFitness()

setFitness

void setFitness(Fitness fitness)


Copyright © 2013. All Rights Reserved.