Logo Search packages:      
Sourcecode: filler version File versions  Download package

friendless::games::filler::player::Wanda Class Reference

Inheritance diagram for friendless::games::filler::player::Wanda:

friendless::games::filler::RobotPlayer friendless::games::filler::DumbRobotPlayer friendless::games::filler::AbstractFillerPlayer friendless::games::filler::FillerPlayer

List of all members.


Detailed Description

Wanda chooses three strategic locations on the board - the centre, and completely across the board in 2 directions. She attempts to take those locations. If she achieves that, she expands as much as possible. This has the effect of stretching her across the board, then expanding explosively.

Author:
John Farrell

Definition at line 28 of file Wanda.java.


Public Member Functions

int borderTurn ()
boolean colourChosen (int c)
int cycle_turn ()
int expandTurn ()
int furthest_border_turn ()
String getFullName ()
String getIcon ()
String getName ()
int goalTurn (int goal)
int mostFreeTurn ()
int mostIfWinTurn ()
int mostTurn ()
int opponentMostTurn ()
int random_turn ()
boolean requiresButtons ()
void setOrigin (int origin, int otherOrigin)
int smartMostTurn ()
int takeTurn (FillerModel model, int otherPlayerColour)
int targetTurn (int target)
int turn ()

Static Public Attributes

static final int centre = FillerModel.makeIndex(FillerSettings.COLUMNS / 2, FillerSettings.ROWS / 2)

Protected Member Functions

BitSet allUsefulColours ()
void calculate (FillerModel model)
int chooseRandom (BitSet choices)
final int[] copy (int[] src)
int dontExpandTurn ()
BitSet maximise (Evaluator evaluator, BitSet colours, FillerModel model, int[] counted)
void setScores ()

Static Protected Member Functions

static BitSet allColours ()
static final int diagDistance (int p1, int p2)
static final int getX (int i)
static final int getY (int i)
static final int intRoot (int x)
static final int makeIndex (int x, int y)
static final int sideDistance (int p1, int p2)

Protected Attributes

final BitSet ALL_COLOURS = allColours()
int colour
int[] goals
FillerModel model
final BitSet NO_COLOURS = new BitSet(FillerSettings.NUM_COLOURS)
int[] origins
int otherPlayerColour
int realScore
int[] reverseOrigins
Random rng
int score
FillerPlayerSpace space
int turn

Package Functions

int[] countSet (BitSet allowed)
int mostInSetTurn (BitSet allowed)

Static Package Attributes

static final int[] ROOTS = { 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 }

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index