|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcs1705.tetris.LameBrain
| Constructor Summary | |
LameBrain()
|
|
| Method Summary | |
void |
bestMove(Board board,
Piece piece,
int heightLimit,
Move move)
Given a piece and a board, generates a move object that represents the best play for that piece, or returns null if no play is possible. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LameBrain()
| Method Detail |
public void bestMove(Board board,
Piece piece,
int heightLimit,
Move move)
Brain
bestMove in interface Brainboard - the current state of the boardpiece - the piece that is fallingheightLimit - the max height of the bottom section of the board
where pieces must come to rest--typically 20
cells (if pieces stack higher than this, the game
is over)move - Place the results in this object, which has
already been allocated for you; the brain should
assign values to all the fields appropriately to
reflect the move it has chosen
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||