sg.edu.nus.comp.cs3243.pipedream
Class Player

java.lang.Object
  |
  +--sg.edu.nus.comp.cs3243.pipedream.Player

public abstract class Player
extends java.lang.Object

Player is the abstract class which you'll need to extend for this assignment. You'll need to provide three simple accessor methods that allow the framework to get your matric number, nus.edu.sg email address and your name.

Don't forget to include the play() method! :-) You'll have to pass the play method an instance of the Driver class so it can access the accessor methods that give you the state of the board, queue and ooze time and direction.

$Log: Player.java,v $ Revision 1.1 2004/01/15 10:29:22 rpnlpir Initial revision Revision 1.1 2004/01/15 05:39:30 rpnlpir Initial revision

Since:
1.0
See Also:
Driver

Constructor Summary
Player()
           
 
Method Summary
abstract  java.lang.String getEmail()
          Implement this method.
abstract  java.lang.String getMatric()
          Implement this method.
abstract  java.lang.String getName()
          Implement this method.
abstract  java.lang.String getTagLine()
          Implement this method.
abstract  Action play(Driver d)
          Implement this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Player

public Player()
Method Detail

getMatric

public abstract java.lang.String getMatric()
Implement this method. Should return your Matric Number as used for this course. Make sure not to misspell this.

getName

public abstract java.lang.String getName()
Implement this method. Should your name with SURNAME in CAPS, and given name in First Letter Capitalized format.

getEmail

public abstract java.lang.String getEmail()
Implement this method. Should return your nus.edu.sg address. DON'T put your comp.nus.edu.sg if you have one. Your grade will be mailed to this address. Make sure not to misspell this.

getTagLine

public abstract java.lang.String getTagLine()
Implement this method. Should return anything you want to say, in one line or less.

play

public abstract Action play(Driver d)
Implement this method. Should return an action, given the state of the game, given through the driver class.