edu.rice.comp440.driver
Class SwingDriver.SwingRandomPlayer

java.lang.Object
  |
  +--edu.rice.comp440.player.RandomPlayer
        |
        +--edu.rice.comp440.driver.SwingDriver.SwingRandomPlayer
Enclosing class:
SwingDriver

protected class SwingDriver.SwingRandomPlayer
extends RandomPlayer


Field Summary
 int DELAY
           
 
Fields inherited from class edu.rice.comp440.player.RandomPlayer
random
 
Constructor Summary
protected SwingDriver.SwingRandomPlayer()
           
 
Method Summary
 Move move(Backgammon backgammon)
          Requests that the player make a move using the given backgammon setup.
 
Methods inherited from class edu.rice.comp440.player.RandomPlayer
lost, won
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELAY

public int DELAY
Constructor Detail

SwingDriver.SwingRandomPlayer

protected SwingDriver.SwingRandomPlayer()
Method Detail

move

public Move move(Backgammon backgammon)
Description copied from class: RandomPlayer
Requests that the player make a move using the given backgammon setup. The player should return a valid and complete move. The list of valid moves can be found by calling backgammon.getAllMoves().
Overrides:
move in class RandomPlayer
Tags copied from class: RandomPlayer
Parameters:
backgammon - The current backgammon situation