Class ScrabbleBuilder
java.lang.Object
ScrabbleBuilder
- public class ScrabbleBuilder
- extends java.lang.Object
This class builds the board and loads the letter set from the information loaded by Dictionary
- Version:
- 2.0
- Author:
- 3GP01 - Hardev Bhamra, Deepak Chandarana, James Tompkin
- See Also:
Game,
Dictionary,
Board
|
Constructor Summary |
ScrabbleBuilder()
ScrabbleBuilder, when invoked, collects the list of letters loaded by Dictionary. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScrabbleBuilder
public ScrabbleBuilder()
- ScrabbleBuilder, when invoked, collects the list of letters loaded by Dictionary.
These letter attributes are processed so that new Letters can be constructed,
creating a letter set with which to play the game.
getAlphabet
public java.util.List getAlphabet()
getLetters
public java.util.List getLetters()
getLetter
public Letter getLetter(char ascii)
getLetter
public Letter getLetter(java.lang.String symbol)
getBoard
public static Square[][] getBoard()
getPremiumSquares
public static java.util.List getPremiumSquares()
- Returns a List of all the premium squares on the board.
- Returns:
- List