Class LetterMove
java.lang.Object
LetterMove
- public class LetterMove
- extends java.lang.Object
This class defines a LetterMove - a specific Letter coupled with x and y co-ordinates.
The class implements methods to get and set a LetterMove.
Multiple LetterMoves make up a Move
- Version:
- 2.0
- Author:
- 3GP01 - Hardev Bhamra, Deepak Chandarana, James Tompkin
- See Also:
LetterMove,
Word
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LetterMove
public LetterMove(int xx,
int yy,
Letter l)
getX
public int getX()
getY
public int getY()
getLetter
public Letter getLetter()
findHorizontalWords
public java.util.List findHorizontalWords(Board b)
findVerticalWords
public java.util.List findVerticalWords(Board b)
getScore
public int getScore(Board b)
toString
public java.lang.String toString()
toXml
public java.lang.String toXml()