Class Game
java.lang.Object
Game
- public class Game
- extends java.lang.Object
This class contains methods for game operation.
Game contains methods to end a turn by validating a move, performing turn's end operations (turn increases, player skips etc),
and ending the game.
- Version:
- 2.0
- Author:
- 3GP01 - Hardev Bhamra, Deepak Chandarana, James Tompkin
- See Also:
Player,
Bag,
Board
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Game
public Game(ScrabbleBuilder builder)
Game
public Game(ScrabbleBuilder builder,
int t)
getScrabble
public Scrabble getScrabble()
randomiseBag
public void randomiseBag(long seed)
setRandomTurn
public void setRandomTurn()
getGameEnded
public boolean getGameEnded()
getLastMoveScore
public int getLastMoveScore()
getLastTurn
public int getLastTurn()
getTurn
public int getTurn()
getMoveNumber
public int getMoveNumber()
addPlayer
public void addPlayer(java.lang.String nme,
java.lang.String corh)
getBoard
public Board getBoard()
getBagSize
public int getBagSize()
getPlayers
public java.util.List getPlayers()
getPlayer
public Player getPlayer()
getLastPlayer
public Player getLastPlayer()
getRack
public Rack getRack()
setRack
public void setRack(Rack r)
getRackLetter
public Letter getRackLetter(int i)
getSquare
public Square getSquare(int i,
int j)
placeLetter
public void placeLetter(Letter l,
int x,
int y)
updateCurrentPlayersRack
public void updateCurrentPlayersRack()
invalidMoveNotification
public void invalidMoveNotification(int x)
incrementLockOutCounter
public void incrementLockOutCounter()
skipCounterIncreaseAndTest
public void skipCounterIncreaseAndTest(int x)
endMoveLight
public void endMoveLight(Move m)
endMove
public void endMove(Move m,
int x)
endTurn
public void endTurn()
gameEnd
public void gameEnd()