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

friendless::games::filler::DumbRobotPlayer Class Reference

Inheritance diagram for friendless::games::filler::DumbRobotPlayer:

friendless::games::filler::AbstractFillerPlayer friendless::games::filler::FillerPlayer friendless::games::filler::player::Hugo friendless::games::filler::player::Shirley friendless::games::filler::RobotPlayer friendless::games::filler::LookaheadRobotPlayer friendless::games::filler::OptimalRobotPlayer friendless::games::filler::player::Aleksandr friendless::games::filler::player::Basil friendless::games::filler::player::Che friendless::games::filler::player::Claudius friendless::games::filler::player::Cochise friendless::games::filler::player::Eldine friendless::games::filler::player::Isadora friendless::games::filler::player::Jefferson friendless::games::filler::player::Luigi friendless::games::filler::player::Mainoumi friendless::games::filler::player::Makhaya friendless::games::filler::player::Manuelito friendless::games::filler::player::Margaret friendless::games::filler::player::Rosita friendless::games::filler::player::Wanda

List of all members.


Detailed Description

A base class for robot players which know almost nothing. In particular, these players do not use the model.

Author:
John Farrell

Definition at line 25 of file DumbRobotPlayer.java.


Public Member Functions

boolean colourChosen (int c)
int cycle_turn ()
String getFullName ()
String getIcon ()
String getName ()
int random_turn ()
boolean requiresButtons ()
void setOrigin (int origin, int otherOrigin)
int takeTurn (FillerModel model, int otherPlayerColour)
abstract int turn ()

Protected Member Functions

BitSet allUsefulColours ()
int chooseRandom (BitSet choices)
final int[] copy (int[] src)

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

int colour
int[] origins
int otherPlayerColour
int[] reverseOrigins
int turn

Static Protected Attributes

static Random rng = new Random()

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