Class ScrabbleBuilder

java.lang.Object
  extended byScrabbleBuilder

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.
 
Method Summary
 java.util.List getAlphabet()
           
static Square[][] getBoard()
           
 Letter getLetter(char ascii)
           
 Letter getLetter(java.lang.String symbol)
           
 java.util.List getLetters()
           
static java.util.List getPremiumSquares()
          Returns a List of all the premium squares on the board.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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