|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectrolec.RandomAI
public class RandomAI
This class represents an AI which enforces a player to play a random move
| Constructor Summary | |
|---|---|
RandomAI()
Constructs a new AI that plays random moves |
|
| Method Summary | |
|---|---|
Move |
selectMove(Move m,
Player p,
Deck deck,
GameHistory history,
boolean simulation)
Selects a move (at random) from the list of possible moves |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomAI()
| Method Detail |
|---|
public Move selectMove(Move m,
Player p,
Deck deck,
GameHistory history,
boolean simulation)
selectMove in interface AIm - the move to respond top - the player who uses this AIdeck - the deck used in this gamehistory - the history of the game
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||