Blatt6
Class AlphaBetaPlayer
java.lang.Object
Blatt6.Player
Blatt6.AlphaBetaPlayer
- public class AlphaBetaPlayer
- extends Player
AlphaBeta-Player
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AlphaBetaPlayer
public AlphaBetaPlayer(GamePanel game,
int player,
javax.swing.JLabel status)
play
public void play()
- Overrides:
play
in class Player
sleep
public void sleep(int time)
evaluateGame
public int evaluateGame()
canBe4
public boolean canBe4(int col,
int row,
int player)
is4
public int is4(int col,
int row,
int player)
is3
public int is3(int col,
int row,
int player)
is2
public int is2(int col,
int row,
int player)
toString
public java.lang.String toString()
- Overrides:
toString
in class Player
setGame
public void setGame(GamePanel game,
int playerNr)
- Specified by:
setGame
in class Player