Blatt6
Class RandomPlayer
java.lang.Object
Blatt6.Player
Blatt6.RandomPlayer
- public class RandomPlayer
- extends Player
Der Random-Player würfelt immer die Zeile aus, in die er als nächstes einen Stein wirft.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RandomPlayer
public RandomPlayer(GamePanel game,
int player,
javax.swing.JLabel status)
play
public void play()
- Overrides:
play
in class 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