- 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 in edu.rice.comp440.driver
-
- GameOverException(String) - Constructor for exception 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.BarMovement
-
Returns the end location movement
- getEnd() - Method in class edu.rice.comp440.move.NormalMovement
-
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.BearOffMovement
-
Returns the starting location movement
- getStart() - Method in class edu.rice.comp440.move.NormalMovement
-
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(double[]) - Method in class edu.rice.comp440.net.NeuralNetwork
-
Calculates the network value given the provided input
- getValue() - Method in interface edu.rice.comp440.net.Unit
-
Returns the current value of this 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
-
- 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 in edu.rice.comp440.player
-
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.