bot
Interface ConfigurableBoardGenerator

All Superinterfaces:
BoardGenerator
All Known Implementing Classes:
ConfigurableBoard

public interface ConfigurableBoardGenerator
extends BoardGenerator


Field Summary
static int BIG
           
static int DEFAULT_DIFFICULTY
           
static int EASY
           
static int HARD
           
static int MEDIUM
           
static int SMALL
           
static int TRIVIAL
           
static int VERY_HARD
           
 
Method Summary
 int getDifficulty()
           
 int getDifficulty(int low, int high)
          Return difficulty, rescaled to [low, high]
 int getDifficulty(int low, int med, int high)
          Return difficulty, rescaled to [low, med, high].
 void setDifficulty(int v)
          set difficulty to a number from 0 (trivial) to 100 (very hard)
 
Methods inherited from interface bot.BoardGenerator
generateBoard
 

Field Detail

TRIVIAL

public static final int TRIVIAL
See Also:
Constant Field Values

EASY

public static final int EASY
See Also:
Constant Field Values

MEDIUM

public static final int MEDIUM
See Also:
Constant Field Values

HARD

public static final int HARD
See Also:
Constant Field Values

VERY_HARD

public static final int VERY_HARD
See Also:
Constant Field Values

BIG

public static final int BIG
See Also:
Constant Field Values

SMALL

public static final int SMALL
See Also:
Constant Field Values

DEFAULT_DIFFICULTY

public static final int DEFAULT_DIFFICULTY
See Also:
Constant Field Values
Method Detail

setDifficulty

public void setDifficulty(int v)
set difficulty to a number from 0 (trivial) to 100 (very hard)


getDifficulty

public int getDifficulty()

getDifficulty

public int getDifficulty(int low,
                         int high)
Return difficulty, rescaled to [low, high]


getDifficulty

public int getDifficulty(int low,
                         int med,
                         int high)
Return difficulty, rescaled to [low, med, high]. Will use a parabolic curve to hit all three points. med maps to 50. low needs to be >= 1.