JavaScript is disabled on your browser.
Skip navigation links
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
A
C
D
E
F
G
H
I
K
M
P
R
S
T
U
V
W
A
AIConfig
- Class in
de.smarten.tsuro.client.player.ai.model
The AIConfig holds Information on the client's settings.
AIConfig()
- Constructor for class de.smarten.tsuro.client.player.ai.model.
AIConfig
Initializes the server config using default values
AIConfig(String, String)
- Constructor for class de.smarten.tsuro.client.player.ai.model.
AIConfig
AIConnectionHandler
- Class in
de.smarten.tsuro.client.player.ai.control
This is the class responsible for handling the AI client's connection.
AIConnectionHandler(AIConfig)
- Constructor for class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
AIConsole
- Class in
de.smarten.tsuro.client.player.ai.view
The AIConsole is a utility for creating console requests.
AIConsole()
- Constructor for class de.smarten.tsuro.client.player.ai.view.
AIConsole
create a new AIConsole and start listening to commands
AIController
- Class in
de.smarten.tsuro.client.player.ai.control
Controller class for the Strategies to use.
AIController(AIConnectionHandler, AIConfig, GameModel)
- Constructor for class de.smarten.tsuro.client.player.ai.control.
AIController
AIWindow
- Class in
de.smarten.tsuro.client.player.ai.view
This class is the main entry point for the AI
AIWindow()
- Constructor for class de.smarten.tsuro.client.player.ai.view.
AIWindow
C
calculateAdjacentPosition(Position, Gate)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
PathTracker
calculateAdjacentPosition(Token)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
PathTracker
calculateHeatMap(GameModel, int)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
HeatMap
calculates a heat map that shows where the other players might head in the next turn.
calculateHeatMap(GameModel, Collection<Tile>, Token)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
HeatMap
calculates a heat map that shows where the other players might head in the next turn.
calculatePossibleStartPositions(GameModel)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
StrategyUtility
calculates possible starting positions using the game's board length and forbidden tiles.
calculateValidTokenStartPositions(GameModel, Position)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
StrategyUtility
This calculates the gates where a token could be placed without the player getting kicked
calculateValidTokenStartPositions(GameModel, Placement)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
StrategyUtility
This calculates the gates where a token could be placed without the player getting kicked
clearResults()
- Method in class de.smarten.tsuro.client.player.ai.strategy.
Strategy
Removes all tiles from the results stack
close()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
closes the current connection
COMMANDS
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
connect()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
connects to the currently set server
connectionResetCallback()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
controller
- Variable in class de.smarten.tsuro.client.player.ai.strategy.
Strategy
The AIController connected to this strategy
D
de.smarten.tsuro.client.player.ai.control
- package de.smarten.tsuro.client.player.ai.control
de.smarten.tsuro.client.player.ai.model
- package de.smarten.tsuro.client.player.ai.model
de.smarten.tsuro.client.player.ai.strategy
- package de.smarten.tsuro.client.player.ai.strategy
de.smarten.tsuro.client.player.ai.strategy.util
- package de.smarten.tsuro.client.player.ai.strategy.util
de.smarten.tsuro.client.player.ai.view
- package de.smarten.tsuro.client.player.ai.view
E
EMPTY_GAMELIST
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_COMMAND_PARAM_MISSSING
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_CONNECTION_CONNECTION
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_CONNECTION_IO
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_DEFAULT
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_JOIN_GAME
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_JOINGAME_IN_QUEUE
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_JOINGAME_NOT_CONNECTED
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_JOINGAME_NUMBERFORMAT
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_NO_RESPONSE
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_NOT_CONNECTED
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_SETIP_CONNECTED
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_SETNAME_QUEUED
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
ERROR_UNKNOWN_COMMAND
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
F
FallbackStrategy
- Class in
de.smarten.tsuro.client.player.ai.strategy
A fallback strategy that simply calculates the first available valid placement.
FallbackStrategy(AIController, GameModel)
- Constructor for class de.smarten.tsuro.client.player.ai.strategy.
FallbackStrategy
fetchToken()
- Method in class de.smarten.tsuro.client.player.ai.strategy.
StrategyRobinJost
fetchUnplaceablePositions(GameModel)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
StrategyUtility
Combines the positions marked as illegal and the positions that are already taken by other placements
finishNotificationCallback()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
firstPlacement
- Variable in class de.smarten.tsuro.client.player.ai.strategy.
Strategy
Deprecated.
Implement InitStrategy instead The initial placement the strategy wants to use
G
gameContinueNotificationCallback()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
gameListResponseCallback(List<Game>)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
gameModel
- Variable in class de.smarten.tsuro.client.player.ai.strategy.
Strategy
The GameModel this strategy observes
gamePauseNotificationCallback()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
gameStartNotificationCallback()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
getAIConfig()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
getAllTurns(GameModel, Collection<Tile>)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
StrategyUtility
Uses the handTiles to iterate through all possible tiles and rotations a player with these tiles could place
getClientId()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIController
getClientID()
- Method in class de.smarten.tsuro.client.player.ai.model.
AIConfig
getCombinedHeat(HeatMap)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
HeatMap
getDefaultLength()
- Static method in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
getFirstPlacement()
- Method in class de.smarten.tsuro.client.player.ai.strategy.
Strategy
Returns the first placement the strategy suggests.
getHandTiles()
- Method in class de.smarten.tsuro.client.player.ai.strategy.util.
PlayerState
getHeatMap()
- Method in class de.smarten.tsuro.client.player.ai.strategy.util.
PlayerState
Deprecated.
heatMap calculation broken
getIP()
- Method in class de.smarten.tsuro.client.player.ai.model.
AIConfig
getIsConnected()
- Method in class de.smarten.tsuro.client.player.ai.model.
AIConfig
getIsQueued()
- Method in class de.smarten.tsuro.client.player.ai.model.
AIConfig
getKickState()
- Method in class de.smarten.tsuro.client.player.ai.strategy.util.
PlayerState
getName()
- Method in class de.smarten.tsuro.client.player.ai.model.
AIConfig
getNextTurnPosition()
- Method in class de.smarten.tsuro.client.player.ai.strategy.util.
PlayerState
getResult()
- Method in class de.smarten.tsuro.client.player.ai.strategy.
Strategy
Returns the result on top of the stack
getResultFirstPlacement()
- Method in class de.smarten.tsuro.client.player.ai.strategy.
FallbackStrategy
getResultFirstPlacement()
- Method in interface de.smarten.tsuro.client.player.ai.strategy.
IInitStrategy
getResultToken()
- Method in class de.smarten.tsuro.client.player.ai.strategy.
FallbackStrategy
getResultToken()
- Method in interface de.smarten.tsuro.client.player.ai.strategy.
IInitStrategy
getSeparator(int)
- Static method in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
Generates a separator string using the specified length
getSeparator()
- Static method in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
Generates a separator string using the length of MESSAGE_BOOT
getSimulatedPostTurnPos(GameModel, Token)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
PathTracker
Simulates a turn with the available information and returns the token position a player would have after their turn
getSimulatedPostTurnPos(GameModel, Placement, Token)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
PathTracker
Simulates a turn with the available information and returns the token position a player would have after their turn
getTemperature(HeatMap, int, int)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
HeatMap
getTokenGate()
- Method in class de.smarten.tsuro.client.player.ai.strategy.util.
PlayerState
getTokenPosition()
- Method in class de.smarten.tsuro.client.player.ai.strategy.util.
PlayerState
getTokenStart()
- Method in class de.smarten.tsuro.client.player.ai.strategy.
Strategy
Returns the token/gate the strategy wants to start at
H
hasPossibleTurns(HeatMap)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
HeatMap
HeatMap
- Class in
de.smarten.tsuro.client.player.ai.strategy.util
A heatMap that holds information about the positions a player could reach from their starting Position using their hand Tiles
I
IInitStrategy
- Interface in
de.smarten.tsuro.client.player.ai.strategy
A init strategy is able to calculate the first and second move for a game
INFO_CALLBACK
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_CONNECTED
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_CONTROLLER_INIT
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_FETCHED_TILE
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_GAME_OVER
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_GAME_STARTED
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_GAME_STARTING
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_GAMELIST
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_GM_UPDATE
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_GOT_KICKED
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_JOIN_GAME_SUCCESS
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_NEXT_TURN
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_PAUSED
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_STRATEGY_INIT
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_TILE_PLACED
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_UNPAUSED
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
INFO_WATCH_STARTED
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
initClientToServerConnection(String)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
creates a
PlayerClientToServerConnection
object.
isConnected()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
isOutOfBounds(GameModel, Position)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
StrategyUtility
isQueued()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
isValidTokenPosition(GameModel, Token)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
TurnChecker
isValidTokenStartPos(GameModel, Token)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
TurnChecker
Determines whether the token was placed at the edge of the board
K
kickNotificationCallback(List<Player>)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
M
main(String[])
- Static method in class de.smarten.tsuro.client.player.ai.view.
AIWindow
AI Client entry point
MESSAGE_BOOT
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
MESSAGE_CONFIG
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
MESSAGE_CONNECT
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
MESSAGE_DISCONNECT
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
MESSAGE_EXIT
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
MESSAGE_GAMELIST
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
MESSAGE_HELP
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
MESSAGE_JOINGAME
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
MESSAGE_SETIP
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
MESSAGE_SETNAME
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
MESSAGE_STATUS
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
MessageHelper
- Class in
de.smarten.tsuro.client.player.ai.model
The MessageHelper is a utility class the provides Messages to be displayed on the client's console
MessageLevel
- Enum in
de.smarten.tsuro.client.player.ai.model
Represents the level of severity of a message
P
padString(String, int)
- Static method in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
Pads a string to match a certain length
parseCommand(String)
- Method in class de.smarten.tsuro.client.player.ai.view.
AIConsole
Parse a command given by the user.
PathTracker
- Class in
de.smarten.tsuro.client.player.ai.strategy.util
A utility class for following paths on the board.
PathTracker()
- Constructor for class de.smarten.tsuro.client.player.ai.strategy.util.
PathTracker
PlayerState
- Class in
de.smarten.tsuro.client.player.ai.strategy.util
This class provides Information on a player's state, including their position, hand tiles,
HeatMap
and KickState.
PlayerState(Position, Gate, Collection<Tile>, HeatMap, KickState)
- Constructor for class de.smarten.tsuro.client.player.ai.strategy.util.
PlayerState
printCommandHelp()
- Method in class de.smarten.tsuro.client.player.ai.view.
AIConsole
prints the available commands
printConfig()
- Method in class de.smarten.tsuro.client.player.ai.view.
AIConsole
prints the current configuration of the AI
printMessage(String)
- Static method in class de.smarten.tsuro.client.player.ai.view.
AIConsole
Deprecated.
This method displays String. Shorthand for System.out.println(s)
printMessage(String, MessageLevel)
- Static method in class de.smarten.tsuro.client.player.ai.view.
AIConsole
This method displays String.
printStatus()
- Method in class de.smarten.tsuro.client.player.ai.view.
AIConsole
prints the current status [connected] [in queue]
processingRequestReplyCallback(JoinResponse, int)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
PROGRESS_JOINING_GAME
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
PROGRESS_LOBBY_WAITING
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
pushResult(Tile)
- Method in class de.smarten.tsuro.client.player.ai.strategy.
Strategy
Adds the specified Tile to the results stack
R
REQUEST_CLIENT_NAME
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
REQUEST_GAME_ID
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
REQUEST_IP
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
requestGameList()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
run()
- Method in class de.smarten.tsuro.client.player.ai.strategy.
FallbackStrategy
run()
- Method in class de.smarten.tsuro.client.player.ai.strategy.
StrategyRobinJost
run()
- Method in class de.smarten.tsuro.client.player.ai.view.
AIConsole
S
sendJoinRequest(int)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
Instructs the connection object to send a gameJoinRequest
sendSetTileCommand(Tile)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
Instructs the connection object to send a setTileCommand
sendSetTileCommand(Tile, Position)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
Instructs the connection object to send a setTileCommand
sendSetTokenCommand(Gate)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
Instructs the connection object to send a setTokenCommand
SEPARATOR
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
setClientID(int)
- Method in class de.smarten.tsuro.client.player.ai.model.
AIConfig
setConnected(boolean)
- Method in class de.smarten.tsuro.client.player.ai.model.
AIConfig
setIP(String)
- Method in class de.smarten.tsuro.client.player.ai.model.
AIConfig
setName(String)
- Method in class de.smarten.tsuro.client.player.ai.model.
AIConfig
setQueued(boolean)
- Method in class de.smarten.tsuro.client.player.ai.model.
AIConfig
simulateFirstTurn(GameModel, Placement, int)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
TurnChecker
Simulates a turn with the available information and returns the PlayerState a server would return.
simulateTokenTurn(GameModel, Token, int)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
TurnChecker
Simulates a turn with the available information and returns the PlayerState a server would return
simulateTurn(GameModel, Tile, Token, int)
- Static method in class de.smarten.tsuro.client.player.ai.strategy.util.
TurnChecker
Simulates a turn with the available information and returns the PlayerState a server would return.
startGame(GameModel)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
startStopWatch()
- Method in class de.smarten.tsuro.client.player.ai.control.
AIController
(Re)starts the StopWatch
startTurn(int, boolean)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIController
checks if this client is the active Player and starts its own StopWatch accordingly
Strategy
- Class in
de.smarten.tsuro.client.player.ai.strategy
The blueprint for any Strategy.
Strategy(AIController, GameModel)
- Constructor for class de.smarten.tsuro.client.player.ai.strategy.
Strategy
The constructor
StrategyFinishedCallback(Strategy)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIController
Instructs the AIController to fetch the Strategy's result.
StrategyRobinJost
- Class in
de.smarten.tsuro.client.player.ai.strategy
A strategy for a Tsuro AI.
StrategyRobinJost(AIController, GameModel)
- Constructor for class de.smarten.tsuro.client.player.ai.strategy.
StrategyRobinJost
The strategy's constructor.
StrategyUtility
- Class in
de.smarten.tsuro.client.player.ai.strategy.util
A utility class for the Strategies to use.
StrategyUtility()
- Constructor for class de.smarten.tsuro.client.player.ai.strategy.util.
StrategyUtility
T
tokenStart
- Variable in class de.smarten.tsuro.client.player.ai.strategy.
Strategy
Deprecated.
Implement InitStrategy instead The Position/Gate at which the strategy wants to put its token
TurnChecker
- Class in
de.smarten.tsuro.client.player.ai.strategy.util
A utility class for strategies to use with the sole purpose of checking turns for their validity.
TurnChecker()
- Constructor for class de.smarten.tsuro.client.player.ai.strategy.util.
TurnChecker
turnNotificationCallback(boolean)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIConnectionHandler
U
update(Observable, Object)
- Method in class de.smarten.tsuro.client.player.ai.control.
AIController
update(Observable, Object)
- Method in class de.smarten.tsuro.client.player.ai.strategy.
FallbackStrategy
update(Observable, Object)
- Method in class de.smarten.tsuro.client.player.ai.strategy.
StrategyRobinJost
V
valueOf(String)
- Static method in enum de.smarten.tsuro.client.player.ai.model.
MessageLevel
Returns the enum constant of this type with the specified name.
values()
- Static method in enum de.smarten.tsuro.client.player.ai.model.
MessageLevel
Returns an array containing the constants of this enum type, in the order they are declared.
W
WARN_CLOSING_CONNECTION
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
WARN_FALLBACK_FAIL
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
WARN_TIME_LOW
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
WARN_USING_FALLBACK
- Static variable in class de.smarten.tsuro.client.player.ai.model.
MessageHelper
A
C
D
E
F
G
H
I
K
M
P
R
S
T
U
V
W
Skip navigation links
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
Copyright © 2017
smarTen
. All rights reserved.