|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSmartPlayer
You must implement this SmartPlayer class for the PA3 assignment for comp440
Constructor Summary | |
SmartPlayer()
|
Method Summary | |
java.awt.Point |
getMove(MineBoard map)
This method will return a Point indicating the next move to make on the given MineBoard |
void |
lose()
This method will be called when the player loses the Minesweeper game |
void |
win()
This method will be called when the player wins the Minesweeper game |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SmartPlayer()
Method Detail |
public java.awt.Point getMove(MineBoard map)
Player
getMove
in interface Player
map
- the MineBoard representing the current state of the
Minesweeper game
public void win()
Player
win
in interface Player
public void lose()
Player
lose
in interface Player
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |