Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
E
G
H
I
L
M
N
O
P
R
S
T
U
V
W
A
addMovement(Movement)
- Method in class edu.rice.comp440.move.
Move
Adds a movement to this move.
apply(Board)
- Method in class edu.rice.comp440.move.
Movement
Validates this movement given the provided board situation.
apply(Board)
- Method in class edu.rice.comp440.move.
NormalMovement
Validates this movement given the provided board situation.
apply(Board)
- Method in class edu.rice.comp440.move.
BarMovement
Validates this movement given the provided board situation.
apply(Board)
- Method in class edu.rice.comp440.move.
BearOffMovement
Validates this movement given the provided board situation.
B
backgammon
- Variable in class edu.rice.comp440.driver.
SwingDriver
backgammon
- Variable in class edu.rice.comp440.driver.
TextDriver
Backgammon
- class edu.rice.comp440.
Backgammon
.
This class wraps all of the backgammon functionality.
Backgammon(Player, Player)
- Constructor for class edu.rice.comp440.
Backgammon
Builds a new backgammon instance, given the two players to play the game between.
BackgammonException
- exception edu.rice.comp440.
BackgammonException
.
BackgammonException(String)
- Constructor for class edu.rice.comp440.
BackgammonException
BACKGROUND_COLOR
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
BAR_BLACK_LOCATION
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
BAR_WHITE_LOCATION
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
BAR_WIDTH
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
BarMovement
- class edu.rice.comp440.move.
BarMovement
.
BarMovement(int, int)
- Constructor for class edu.rice.comp440.move.
BarMovement
Constructor, taking the player and the end location
BearOffMovement
- class edu.rice.comp440.move.
BearOffMovement
.
BearOffMovement(int, int)
- Constructor for class edu.rice.comp440.move.
BearOffMovement
Constructor, taking the player, the start location
black
- Variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
BLACK
- Static variable in class edu.rice.comp440.board.
Board
board
- Variable in class edu.rice.comp440.
Backgammon
board
- Variable in class edu.rice.comp440.driver.
SwingDriver
board
- Variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
board
- Variable in class edu.rice.comp440.move.
Move
Board
- class edu.rice.comp440.board.
Board
.
Board()
- Constructor for class edu.rice.comp440.board.
Board
Constructor, build an newly initialzed board
Board(Board)
- Constructor for class edu.rice.comp440.board.
Board
Constructor, builds a copy of the given board
boards
- Variable in class edu.rice.comp440.move.
Move
BORDER
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
BORDER
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
C
canUse(Board, int)
- Method in class edu.rice.comp440.move.
Movement
Returns whether or not this movement can use the given dice roll to perfrom it's movement
canUse(Board, int)
- Method in class edu.rice.comp440.move.
NormalMovement
Returns whether or not this movement can use the given dice roll to perfrom it's movement
canUse(Board, int)
- Method in class edu.rice.comp440.move.
BarMovement
Returns whether or not this movement can use the given dice roll to perfrom it's movement
canUse(Board, int)
- Method in class edu.rice.comp440.move.
BearOffMovement
Returns whether or not this movement can use the given dice roll to perfrom it's movement
CONNECTION_CENTER_COLOR
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
CONNECTION_MAX_COLOR
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
CONNECTION_MIN_COLOR
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
CONNECTION_SELECTED_CENTER_COLOR
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
CONNECTION_SELECTED_CENTER_COLOR_2
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
CONNECTION_SELECTED_MAX_COLOR
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
CONNECTION_SELECTED_MIN_COLOR
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
D
DELAY
- Variable in class edu.rice.comp440.driver.
SwingDriver.SwingRandomPlayer
dice
- Variable in class edu.rice.comp440.
Backgammon
dice
- Variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
dice
- Variable in class edu.rice.comp440.move.
Move
Dice
- class edu.rice.comp440.board.
Dice
.
DICE_RANDOM
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
die1
- Variable in class edu.rice.comp440.board.
Dice
die2
- Variable in class edu.rice.comp440.board.
Dice
drawBar(Graphics2D)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
drawBar(Graphics2D, int, int)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
drawDice(Graphics2D)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
drawDragged(Graphics)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
drawMan(Graphics2D, int, int, int)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
drawMen(Graphics2D)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
drawMen(Graphics2D, int)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
drawOff(Graphics2D)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
drawOff(Graphics2D, int, int)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
drawText(Graphics2D, String, int, int)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
E
edu.rice.comp440
- package edu.rice.comp440
edu.rice.comp440.board
- package edu.rice.comp440.board
edu.rice.comp440.driver
- package edu.rice.comp440.driver
edu.rice.comp440.move
- package edu.rice.comp440.move
edu.rice.comp440.net
- package edu.rice.comp440.net
edu.rice.comp440.player
- package edu.rice.comp440.player
end
- Variable in class edu.rice.comp440.move.
NormalMovement
end
- Variable in class edu.rice.comp440.move.
BarMovement
equals(Object)
- Method in class edu.rice.comp440.board.
Board
Public equals
equals(Object)
- Method in class edu.rice.comp440.move.
NormalMovement
Returns whether not this movement equals the object
equals(Object)
- Method in class edu.rice.comp440.move.
Move
Returns whether or not this move is equal to the other
equals(Object)
- Method in class edu.rice.comp440.move.
BarMovement
Returns whether not this movement equals the object
equals(Object)
- Method in class edu.rice.comp440.move.
BearOffMovement
Returns whether not this movement equals the object
G
game
- Variable in class edu.rice.comp440.driver.
SwingDriver
game
- Variable in class edu.rice.comp440.driver.
TextDriver
gameOver()
- Method in class edu.rice.comp440.driver.
TextDriver
GameOverException
- exception edu.rice.comp440.driver.
GameOverException
.
GameOverException(String)
- Constructor for class edu.rice.comp440.driver.
GameOverException
generateMoves(Move)
- Static method in class edu.rice.comp440.move.
MovementFactory
getAllMoves(int, Dice, Board)
- Static method in class edu.rice.comp440.move.
MovementFactory
Returns all possible distinct moves for the given player given the starting board and the given dice roll.
getBar(int)
- Method in class edu.rice.comp440.board.
Board
Returns the number of pieces on the bar of the given color.
getBase(int)
- Static method in class edu.rice.comp440.board.
Board
Returns the home location of the given color (the location where the color wants to move it's pieces).
getBlackBar()
- Method in class edu.rice.comp440.board.
Board
Returns the number of black pieces on the bar.
getBlackOff()
- Method in class edu.rice.comp440.board.
Board
Returns the number of black pieces beared off
getBlackPieces(int)
- Method in class edu.rice.comp440.board.
Board
Returns the number of black pieces at the given location.
getBlackPips()
- Method in class edu.rice.comp440.board.
Board
Returns the number of black pips left
getColor(int)
- Method in class edu.rice.comp440.board.
Board
Returns the color of the pieces at the given location
getCurrentBoard()
- Method in class edu.rice.comp440.
Backgammon
Returns the current board.
getCurrentBoard()
- Method in class edu.rice.comp440.driver.
SwingDriver
returns the current board
getCurrentBoard()
- Method in class edu.rice.comp440.move.
Move
Returns the current scratch board, or the board with all internmediate movements applied
getCurrentPlayer()
- Method in class edu.rice.comp440.
Backgammon
Returns the current player, either Board.BLACK or Board.WHITE
getDice()
- Method in class edu.rice.comp440.
Backgammon
Returns the current dice
getDice(int, int)
- Static method in class edu.rice.comp440.board.
Dice
Method which returns a specific dice roll.
getDie1()
- Method in class edu.rice.comp440.board.
Dice
Returns the value of the first die
getDie2()
- Method in class edu.rice.comp440.board.
Dice
Returns the value of the second die
getDirection(int)
- Static method in class edu.rice.comp440.board.
Board
Returns the direction of the given color (the direction where the color wants to move it's pieces).
getEnd()
- Method in class edu.rice.comp440.move.
NormalMovement
Returns the end location movement
getEnd()
- Method in class edu.rice.comp440.move.
BarMovement
Returns the end location movement
getMoves()
- Method in class edu.rice.comp440.
Backgammon
Returns a list of all of the possible moves which the player can currently make
getNode(int, int)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Returns the node at the given lcoation, or null if none exists
getNumMovements()
- Method in class edu.rice.comp440.move.
Move
Returns the number of movements currently in this move
getOff(int)
- Method in class edu.rice.comp440.board.
Board
Returns the number of pieces beared off of the given color.
getOriginalBoard()
- Method in class edu.rice.comp440.move.
Move
Returns the starting board of the move
getOtherPlayer(int)
- Static method in class edu.rice.comp440.board.
Board
Returns the other player
getPieces(int)
- Method in class edu.rice.comp440.board.
Board
Returns the number of pieces at the given location
getPieces(int, int)
- Method in class edu.rice.comp440.board.
Board
Returns the number of pieces at the given location an of the given color.
getPips(int)
- Method in class edu.rice.comp440.board.
Board
Returns the number of pips for the given color.
getPlayer()
- Method in class edu.rice.comp440.move.
Movement
Returns the player making this movement
getPreferredSize()
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
getPreferredSize()
- Method in class edu.rice.comp440.driver.
SwingDriver.StatusPanel
getPreferredSize()
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Returns the preferred size of this panel
getScratch()
- Method in class edu.rice.comp440.board.
Board
Returns a scratch copy of the board, which is a clone and can be changes without any problems.
getSpike(int, int)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
getStart()
- Method in class edu.rice.comp440.move.
NormalMovement
Returns the starting location movement
getStart()
- Method in class edu.rice.comp440.move.
BearOffMovement
Returns the starting location movement
getSum()
- Method in class edu.rice.comp440.net.
HiddenUnit
Returns the sum of all of the inputs and weights
getValue()
- Method in class edu.rice.comp440.net.
HiddenUnit
Returns the current value of this input
getValue()
- Method in class edu.rice.comp440.net.
InputUnit
Returns the current value of this input
getValue()
- Method in interface edu.rice.comp440.net.
Unit
Returns the current value of this input
getValue(double[])
- Method in class edu.rice.comp440.net.
NeuralNetwork
Calculates the network value given the provided input
getWhiteBar()
- Method in class edu.rice.comp440.board.
Board
Returns the number of white pieces on the bar.
getWhiteOff()
- Method in class edu.rice.comp440.board.
Board
Returns the number of white pieces beared off
getWhitePieces(int)
- Method in class edu.rice.comp440.board.
Board
Returns the number of black pieces at the given location.
getWhitePips()
- Method in class edu.rice.comp440.board.
Board
Returns the number of white pips left
getWinner()
- Method in class edu.rice.comp440.board.
Board
If the game is over, this returns the winner
getX(int, int)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Returns the x-coordinate of the given node
getY(int, int)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Returns the y-coordinate of the given node
go()
- Method in class edu.rice.comp440.driver.
TextDriver
H
handleCommand(String)
- Method in class edu.rice.comp440.driver.
TextDriver
handleHelpCommand()
- Method in class edu.rice.comp440.driver.
TextDriver
handleListCommand()
- Method in class edu.rice.comp440.driver.
TextDriver
handleMoveCommand()
- Method in class edu.rice.comp440.driver.
TextDriver
handleMoveCommandHelper()
- Method in class edu.rice.comp440.driver.
TextDriver
handleMovement(Movement)
- Method in class edu.rice.comp440.driver.
SwingDriver
handlePrintCommand()
- Method in class edu.rice.comp440.driver.
TextDriver
handleResetCommand()
- Method in class edu.rice.comp440.driver.
TextDriver
handleUndoCommand()
- Method in class edu.rice.comp440.driver.
TextDriver
hasAlpha(Image)
- Static method in class edu.rice.comp440.driver.
SwingDriver
hash(int, int[])
- Method in class edu.rice.comp440.board.
Board
hashCode()
- Method in class edu.rice.comp440.board.
Board
Returns the hashCode of this move
hashCode()
- Method in class edu.rice.comp440.move.
Move
Returns the hashCode of this move
HEIGHT
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
HEIGHT
- Static variable in class edu.rice.comp440.driver.
SwingDriver.StatusPanel
HEIGHT
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
hidden
- Variable in class edu.rice.comp440.net.
NeuralNetwork
HiddenUnit
- class edu.rice.comp440.net.
HiddenUnit
.
HiddenUnit(Unit[], double[])
- Constructor for class edu.rice.comp440.net.
HiddenUnit
Builds a hidden unit taking the provided number of inputs.
HiddenUnit(Unit[], Random)
- Constructor for class edu.rice.comp440.net.
HiddenUnit
Builds a hidden unit taking the provided number of inputs.
I
IllegalDiceRollException
- exception edu.rice.comp440.board.
IllegalDiceRollException
.
IllegalDiceRollException(String)
- Constructor for class edu.rice.comp440.board.
IllegalDiceRollException
IllegalMoveException
- exception edu.rice.comp440.move.
IllegalMoveException
.
IllegalMoveException(String)
- Constructor for class edu.rice.comp440.move.
IllegalMoveException
ImproperlyFormattedCommandException
- exception edu.rice.comp440.driver.
ImproperlyFormattedCommandException
.
ImproperlyFormattedCommandException(String)
- Constructor for class edu.rice.comp440.driver.
ImproperlyFormattedCommandException
ImproperlyFormattedCommandException(String, String)
- Constructor for class edu.rice.comp440.driver.
ImproperlyFormattedCommandException
inHomeQuadrant(int, int)
- Static method in class edu.rice.comp440.board.
Board
Method which returns whether or not the given spike is in the given player's home square.
INITIAL_COLORS
- Static variable in class edu.rice.comp440.board.
Board
INITIAL_LOCATIONS
- Static variable in class edu.rice.comp440.board.
Board
INITIAL_NUMBERS
- Static variable in class edu.rice.comp440.board.
Board
input
- Variable in class edu.rice.comp440.net.
NeuralNetwork
INPUT_LENGTH
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
InputUnit
- class edu.rice.comp440.net.
InputUnit
.
InputUnit()
- Constructor for class edu.rice.comp440.net.
InputUnit
Builds a hidden unit taking the provided number of inputs.
isBar(int, int, int)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
isBetween(int, int, int)
- Static method in class edu.rice.comp440.board.
Board
Method which checks to see if the location is between the other two locations.
isDice(int, int)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
isDoubles()
- Method in class edu.rice.comp440.board.
Dice
Returns whether or not the dice are doubles
isEqual(int[], int[])
- Static method in class edu.rice.comp440.board.
Board
Utility function to detect equality
isFull()
- Method in class edu.rice.comp440.move.
Move
Returns whether or not there are move moves to be made
isGameOver()
- Method in class edu.rice.comp440.
Backgammon
Returns whether or not the game is over
isGameOver()
- Method in class edu.rice.comp440.board.
Board
Returns whether or not the game is over
isSelected(int, int)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Returns whetehr or not the node is slected
isSpike(int, int)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
L
layout
- Variable in class edu.rice.comp440.driver.
SwingDriver
LEVEL_SPACING
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
lost()
- Method in class edu.rice.comp440.driver.
SwingDriver.SwingHumanPlayer
lost()
- Method in class edu.rice.comp440.driver.
TextDriver.TextHumanPlayer
lost()
- Method in class edu.rice.comp440.player.
RandomPlayer
lost()
- Method in interface edu.rice.comp440.player.
Player
Upcall to indicate that this player has lost the current game
M
main(String[])
- Static method in class edu.rice.comp440.driver.
SwingDriver
main(String[])
- Static method in class edu.rice.comp440.driver.
TextDriver
main(String[])
- Static method in class edu.rice.comp440.net.
NeuralNetworkVisualizer
MAN_HEIGHT
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
MAN_WIDTH
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
MAX_INITIAL_WEIGHT
- Static variable in class edu.rice.comp440.net.
HiddenUnit
MAX_MEN
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
MAX_VALUE
- Static variable in class edu.rice.comp440.board.
Dice
message
- Variable in class edu.rice.comp440.driver.
SwingDriver.StatusPanel
MIN_INITIAL_WEIGHT
- Static variable in class edu.rice.comp440.net.
HiddenUnit
MIN_VALUE
- Static variable in class edu.rice.comp440.board.
Dice
mouseClicked(MouseEvent)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
mouseClicked(MouseEvent)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
mouseDragged(MouseEvent)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
mouseEntered(MouseEvent)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
mouseEntered(MouseEvent)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
mouseExited(MouseEvent)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
mouseExited(MouseEvent)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
mouseMoved(MouseEvent)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
mousePressed(MouseEvent)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
mousePressed(MouseEvent)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
mouseReleased(MouseEvent)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
mouseReleased(MouseEvent)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
move
- Variable in class edu.rice.comp440.driver.
SwingDriver
move
- Variable in class edu.rice.comp440.driver.
TextDriver
Move
- class edu.rice.comp440.move.
Move
.
Class which represents a move in backgammon.
MOVE_OFFSET
- Static variable in class edu.rice.comp440.driver.
SwingDriver.StatusPanel
move(Backgammon)
- Method in class edu.rice.comp440.driver.
SwingDriver.SwingHumanPlayer
move(Backgammon)
- Method in class edu.rice.comp440.driver.
SwingDriver.SwingRandomPlayer
move(Backgammon)
- Method in class edu.rice.comp440.driver.
TextDriver.TextHumanPlayer
move(Backgammon)
- Method in class edu.rice.comp440.player.
RandomPlayer
Requests that the player make a move using the given backgammon setup.
move(Backgammon)
- Method in interface edu.rice.comp440.player.
Player
Requests that the player make a move using the given backgammon setup.
Move(Dice, Board, int)
- Constructor for class edu.rice.comp440.move.
Move
Builds a new Move, using the provided dice roll
Move(Move)
- Constructor for class edu.rice.comp440.move.
Move
Clones the given move
moveDone()
- Method in class edu.rice.comp440.driver.
SwingDriver.SwingHumanPlayer
moveDone()
- Method in class edu.rice.comp440.driver.
TextDriver.TextHumanPlayer
Movement
- class edu.rice.comp440.move.
Movement
.
Movement(int)
- Constructor for class edu.rice.comp440.move.
Movement
Constructor, taking the player
MovementFactory
- class edu.rice.comp440.move.
MovementFactory
.
MovementFactory()
- Constructor for class edu.rice.comp440.move.
MovementFactory
movements
- Variable in class edu.rice.comp440.move.
Move
moveOff(int)
- Method in class edu.rice.comp440.board.
Board
Moves a piece off of the given color
movePossible()
- Method in class edu.rice.comp440.move.
Move
Returns whether or not a move is possible for the current user.
movePossible(int, int, Board)
- Static method in class edu.rice.comp440.move.
NormalMovement
Return whether or not a move is possible using the given dice roll by the given player in the given board.
movePossible(int, int, Board)
- Static method in class edu.rice.comp440.move.
MovementFactory
Return whether or not a move is possible using the given dice roll by the given player in the given board.
movePossible(int, int, Board)
- Static method in class edu.rice.comp440.move.
BarMovement
Return whether or not a move is possible using the given dice roll by the given player in the given board.
movePossible(int, int, Board)
- Static method in class edu.rice.comp440.move.
BearOffMovement
Return whether or not a move is possible using the given dice roll by the given player in the given board.
moveToBar(int)
- Method in class edu.rice.comp440.board.
Board
Moves a piece to the bar of the given color
moveToLocation(int, int)
- Method in class edu.rice.comp440.board.
Board
Moves a piece to the given location of the given color
N
NEITHER
- Static variable in class edu.rice.comp440.board.
Board
net
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
NeuralNetwork
- class edu.rice.comp440.net.
NeuralNetwork
.
NeuralNetwork(int, int[])
- Constructor for class edu.rice.comp440.net.
NeuralNetwork
Builds a neural network with the given number of input units, hidden units, and output units.
NeuralNetwork(NeuralNetwork)
- Constructor for class edu.rice.comp440.net.
NeuralNetwork
Builds a neural network based on the provided network and copies the weights of the provided network into the new one.
NeuralNetworkVisualizer
- class edu.rice.comp440.net.
NeuralNetworkVisualizer
.
NeuralNetworkVisualizer.NeuralNetworkPanel
- class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
.
NeuralNetworkVisualizer.NeuralNetworkPanel(NeuralNetworkVisualizer, NeuralNetwork)
- Constructor for class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Builds a neural network panel
NeuralNetworkVisualizer(NeuralNetwork)
- Constructor for class edu.rice.comp440.net.
NeuralNetworkVisualizer
Builds a visualizer given the network to visualize
NewGameException
- exception edu.rice.comp440.driver.
NewGameException
.
NewGameException()
- Constructor for class edu.rice.comp440.driver.
NewGameException
NODE_DIAMETER
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
NODE_FILL_COLOR
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
NODE_OUTLINE_COLOR
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
NODE_SELECTED_COLOR
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
NormalMovement
- class edu.rice.comp440.move.
NormalMovement
.
NormalMovement(int, int, int)
- Constructor for class edu.rice.comp440.move.
NormalMovement
Constructor, taking the player, the start and the end location
NUM_DICE
- Static variable in class edu.rice.comp440.board.
Dice
NUM_SPIKES
- Static variable in class edu.rice.comp440.board.
Board
O
OFFSET
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
onBoard(int)
- Static method in class edu.rice.comp440.board.
Board
Internal method which returns whether or not the given location is on the board
P
paint(Graphics)
- Method in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
paint(Graphics)
- Method in class edu.rice.comp440.driver.
SwingDriver.StatusPanel
paint(Graphics)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Draws this panel.
paintConnection(Graphics2D, int, int, int, int, double, boolean)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Draws one connection
paintConnections(Graphics2D)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Paints the connections between the nodes
paintNode(Graphics2D, int, int, String)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Paints a node at the given location
paintNode(Graphics2D, int, int, String, boolean)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Paints a node at the given location
paintNodes(Graphics2D)
- Method in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
Paints the nodes
panel
- Variable in class edu.rice.comp440.driver.
SwingDriver
panel
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer
PIPS_OFFSET
- Static variable in class edu.rice.comp440.driver.
SwingDriver.StatusPanel
player
- Variable in class edu.rice.comp440.
Backgammon
player
- Variable in class edu.rice.comp440.driver.
SwingDriver
player
- Variable in class edu.rice.comp440.driver.
TextDriver
player
- Variable in class edu.rice.comp440.move.
Movement
player
- Variable in class edu.rice.comp440.move.
Move
Player
- interface edu.rice.comp440.player.
Player
.
Class which represents a backgammon player.
players
- Variable in class edu.rice.comp440.
Backgammon
pressed
- Variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
pressedLocation
- Variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
pressedX
- Variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
pressedY
- Variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
print(PrintStream)
- Method in class edu.rice.comp440.
Backgammon
Prints out a gnubg-style text board.
print(PrintStream)
- Method in class edu.rice.comp440.board.
Dice
Prints out a gnubg-style text board.
print(PrintStream)
- Method in class edu.rice.comp440.board.
Board
Prints out a gnubg-style text board.
print(PrintStream, Board)
- Method in class edu.rice.comp440.
Backgammon
Prints out a gnubg-style text board.
print(PrintStream, int, int)
- Method in class edu.rice.comp440.board.
Board
Internal method to print a piece and location
R
random
- Variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
random
- Static variable in class edu.rice.comp440.net.
NeuralNetwork
random
- Variable in class edu.rice.comp440.player.
RandomPlayer
randomizeWeights(Random)
- Method in class edu.rice.comp440.net.
HiddenUnit
Generates a new weight
RandomPlayer
- class edu.rice.comp440.player.
RandomPlayer
.
Class which implements a random player.
RandomPlayer()
- Constructor for class edu.rice.comp440.player.
RandomPlayer
readFrom(String)
- Static method in class edu.rice.comp440.net.
NeuralNetwork
Method which reads and returns a network from the given file
recompute()
- Method in class edu.rice.comp440.net.
HiddenUnit
Recomputes the value of this hidden unit, querying it's prior inputs.
recompute()
- Method in class edu.rice.comp440.net.
InputUnit
Recomputes the value of this hidden unit, querying it's prior inputs.
recompute()
- Method in interface edu.rice.comp440.net.
Unit
Recomputes the value of this hidden unit, querying it's prior inputs.
removeFromBar(int)
- Method in class edu.rice.comp440.board.
Board
Removes a piece from the bar of the given color
removeFromLocation(int, int)
- Method in class edu.rice.comp440.board.
Board
Removes a piece from the given location of the given color
reset()
- Method in class edu.rice.comp440.
Backgammon
Resets this backgammon instance to the initial state, with a new board and the black player's move
reset()
- Method in class edu.rice.comp440.board.
Board
Resets the pieces on the board to their initial configurations
roll()
- Static method in class edu.rice.comp440.board.
Dice
Method which rolls the dice
run()
- Method in class edu.rice.comp440.
Backgammon
Runs a game of backgammon, and does not return until the game is over.
S
selected
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
setValue(double)
- Method in class edu.rice.comp440.net.
InputUnit
Sets the value of this input unit
sigmoid(double)
- Method in class edu.rice.comp440.net.
HiddenUnit
Implements the sigmoid function to provide the non-linearity to this function.
SPIKE_HEIGHT
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
SPIKE_WIDTH
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
start
- Variable in class edu.rice.comp440.move.
NormalMovement
start
- Variable in class edu.rice.comp440.move.
BearOffMovement
status
- Variable in class edu.rice.comp440.driver.
SwingDriver
SwingDriver
- class edu.rice.comp440.driver.
SwingDriver
.
SwingDriver.BoardPanel
- class edu.rice.comp440.driver.
SwingDriver.BoardPanel
.
SwingDriver.BoardPanel(SwingDriver)
- Constructor for class edu.rice.comp440.driver.
SwingDriver.BoardPanel
SwingDriver.StatusPanel
- class edu.rice.comp440.driver.
SwingDriver.StatusPanel
.
SwingDriver.StatusPanel(SwingDriver)
- Constructor for class edu.rice.comp440.driver.
SwingDriver.StatusPanel
SwingDriver.SwingHumanPlayer
- class edu.rice.comp440.driver.
SwingDriver.SwingHumanPlayer
.
SwingDriver.SwingHumanPlayer(SwingDriver)
- Constructor for class edu.rice.comp440.driver.
SwingDriver.SwingHumanPlayer
SwingDriver.SwingRandomPlayer
- class edu.rice.comp440.driver.
SwingDriver.SwingRandomPlayer
.
SwingDriver.SwingRandomPlayer(SwingDriver)
- Constructor for class edu.rice.comp440.driver.
SwingDriver.SwingRandomPlayer
SwingDriver()
- Constructor for class edu.rice.comp440.driver.
SwingDriver
T
TEXT_COLOR
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
TEXT_FONT
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
TextDriver
- class edu.rice.comp440.driver.
TextDriver
.
TextDriver.TextHumanPlayer
- class edu.rice.comp440.driver.
TextDriver.TextHumanPlayer
.
TextDriver.TextHumanPlayer(TextDriver)
- Constructor for class edu.rice.comp440.driver.
TextDriver.TextHumanPlayer
TextDriver()
- Constructor for class edu.rice.comp440.driver.
TextDriver
toBufferedImage(Image)
- Static method in class edu.rice.comp440.driver.
SwingDriver
tokenizer
- Variable in class edu.rice.comp440.driver.
TextDriver
toString()
- Method in class edu.rice.comp440.move.
NormalMovement
Returns a String representation of this move
toString()
- Method in class edu.rice.comp440.move.
Move
Returns a String representation of this move
toString()
- Method in class edu.rice.comp440.move.
BarMovement
Returns a String representation of this move
toString()
- Method in class edu.rice.comp440.move.
BearOffMovement
Returns a String representation of this move
U
Unit
- interface edu.rice.comp440.net.
Unit
.
units
- Variable in class edu.rice.comp440.net.
HiddenUnit
UnrecognizedCommandException
- exception edu.rice.comp440.driver.
UnrecognizedCommandException
.
UnrecognizedCommandException(String)
- Constructor for class edu.rice.comp440.driver.
UnrecognizedCommandException
used
- Variable in class edu.rice.comp440.move.
Move
USED
- Static variable in class edu.rice.comp440.move.
Move
V
value
- Variable in class edu.rice.comp440.net.
HiddenUnit
value
- Variable in class edu.rice.comp440.net.
InputUnit
W
weights
- Variable in class edu.rice.comp440.net.
HiddenUnit
white
- Variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
WHITE
- Static variable in class edu.rice.comp440.board.
Board
WIDTH
- Static variable in class edu.rice.comp440.driver.
SwingDriver.BoardPanel
WIDTH
- Variable in class edu.rice.comp440.net.
NeuralNetworkVisualizer.NeuralNetworkPanel
won()
- Method in class edu.rice.comp440.driver.
SwingDriver.SwingHumanPlayer
won()
- Method in class edu.rice.comp440.driver.
TextDriver.TextHumanPlayer
won()
- Method in class edu.rice.comp440.player.
RandomPlayer
won()
- Method in interface edu.rice.comp440.player.
Player
Upcall to indicate that this player has won the current game
writeTo(String)
- Method in class edu.rice.comp440.net.
NeuralNetwork
Method which writes this network to the given file
A
B
C
D
E
G
H
I
L
M
N
O
P
R
S
T
U
V
W
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES