|
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.Logic
algs.model.problems.tictactoe.model.StraightLogic
public class StraightLogic
Logic of the normal TicTacToe
| Constructor Summary | |
|---|---|
StraightLogic()
|
|
| Method Summary | |
|---|---|
StraightLogic |
copy()
Each logic must implement 'copy' to properly be used when evaluating future moves. |
Move |
interpretMove(IGameState gameState,
int col,
int row,
Player player)
Method to determine the type of move that the user has selected. |
java.lang.String |
rules()
rules of Straight Tic Tac Toe Apply. |
java.lang.String |
toString()
Return name for logic. |
| Methods inherited from class algs.model.problems.tictactoe.model.Logic |
|---|
initializeState, maxNumberMoves, score, validMoves |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StraightLogic()
| Method Detail |
|---|
public java.lang.String rules()
rules in class Logicpublic StraightLogic copy()
copy in class Logic
public Move interpretMove(IGameState gameState,
int col,
int row,
Player player)
interpretMove in class LogicgameState - current board statecol - selected columnrow - selected rowplayer - player making the move.
public java.lang.String toString()
toString in class java.lang.Object
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||