|
Algorithm Development Kit 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectalgs.model.problems.tictactoe.model.PlayerFactory
public class PlayerFactory
Factory to properly construct Player objects representing the type of agents playing TicTacToe.
| Field Summary | |
|---|---|
static java.lang.String |
AlphaBeta
|
static java.lang.String |
MiniMax
Algorithms. |
static java.lang.String |
NegMax
|
static java.lang.String |
Random
Known types. |
| Constructor Summary | |
|---|---|
PlayerFactory()
|
|
| Method Summary | |
|---|---|
static Player |
createPlayer(java.lang.String type,
char mark)
Create a player just by the type. |
static Player |
createPlayerWithPly(java.lang.String type,
char mark,
int ply)
Create player with a fixed ply lookahead. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String Random
public static final java.lang.String MiniMax
public static final java.lang.String NegMax
public static final java.lang.String AlphaBeta
| Constructor Detail |
|---|
public PlayerFactory()
| Method Detail |
|---|
public static Player createPlayer(java.lang.String type,
char mark)
type - Type of playermark - X or O mark for player
public static Player createPlayerWithPly(java.lang.String type,
char mark,
int ply)
type - Type of playermark - Mark to use for playerply - Depth of ply to search.
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||