A C D E F G I M N P R S T U V W 
All Classes All Packages

G

game - Variable in class com.neven.ticTacToeGame.model.MiniMaxAlgorithm
Field with an injected in constructor Game class.
game(Model, int) - Method in class com.neven.ticTacToeGame.controller.PlayerVsAlgorithmController
Allow to serve HTTP requests for requests "{pageContext}/game/algorithm" by method POST.
game(Model, int) - Method in class com.neven.ticTacToeGame.controller.PlayerVsPlayerController
Allow to serve HTTP requests for requests "{pageContext}/game/players" by method POST.
game(Model, int) - Method in class com.neven.ticTacToeGame.controller.PlayerVsRandomController
Allow to serve HTTP requests for requests "{pageContext}/game/random" by method POST.
Game - Class in com.neven.ticTacToeGame.model
Class Game is an abstract class which contain main logic for the games.
Game(String) - Constructor for class com.neven.ticTacToeGame.model.Game
Constructor for class Game.
Constructor initialized Game.player2 field by incoming param, Game.currentPlayer field by Game.player1 value and Game.cells by filling all game filed with Game.emptyCell
GAME_MODEL_ATTRIBUTE_NAME - Static variable in class com.neven.ticTacToeGame.controller.PlayerVsAlgorithmController
Constant with a name of the model attribute for game.
GAME_MODEL_ATTRIBUTE_NAME - Static variable in class com.neven.ticTacToeGame.controller.PlayerVsPlayerController
Constant with a name of the model attribute for game.
GAME_MODEL_ATTRIBUTE_NAME - Static variable in class com.neven.ticTacToeGame.controller.PlayerVsRandomController
Constant with a name of the model attribute for game.
GAME_PAGE_NAME - Static variable in class com.neven.ticTacToeGame.controller.PlayerVsAlgorithmController
Constant with a name of the player versus algorithm game view.
GAME_PAGE_NAME - Static variable in class com.neven.ticTacToeGame.controller.PlayerVsPlayerController
Constant with a name of player versus algorithm game view.
GAME_PAGE_NAME - Static variable in class com.neven.ticTacToeGame.controller.PlayerVsRandomController
Constant with a name of the player versus algorithm game view.
GAME_START_PAGE_NAME - Static variable in class com.neven.ticTacToeGame.controller.PlayerVsAlgorithmController
Constant with a name of the view where user should make a decision who will start the game, user or algorithm.
GAME_START_PAGE_NAME - Static variable in class com.neven.ticTacToeGame.controller.PlayerVsRandomController
Constant with a name of the view where user should make a decision who will start the game, user or algorithm.
GamesFactory - Class in com.neven.ticTacToeGame.utils
Class GamesFactory is a Factory Design Pattern.
GamesFactory() - Constructor for class com.neven.ticTacToeGame.utils.GamesFactory
 
GameTypes - Enum in com.neven.ticTacToeGame.utils
Enum GameTypes care all types for the Game class.
GameTypes() - Constructor for enum com.neven.ticTacToeGame.utils.GameTypes
 
getBordFromGame() - Method in class com.neven.ticTacToeGame.model.MiniMaxAlgorithm
This method takes game board from the MiniMaxAlgorithm.game and refactor it from the line view to a classic view:
Line view:
(1, 2, 3, 4, 5, 6, 7, 8, 9)
Classic view:
1|2|3
4|5|6
7|8|9
All moves on game field also marked on the board by MiniMaxAlgorithm.player, MiniMaxAlgorithm.algorithm, MiniMaxAlgorithm.emptyCell) characters.
getGame(GameTypes) - Static method in class com.neven.ticTacToeGame.utils.GamesFactory
This method return specific Game (can be PlayerVsPlayerGame, PlayerVsRandomGame, PlayerVsAlgorithmGame) by receiving game type from GameTypes.
getGameWithAlgorithm() - Method in class com.neven.ticTacToeGame.controller.PlayerVsAlgorithmController
Allow to serve HTTP requests for requests "{pageContext}/game/algorithm" by method GET.
getGameWithRandom() - Method in class com.neven.ticTacToeGame.controller.PlayerVsRandomController
Allow to serve HTTP requests for requests "{pageContext}/game/random" by method GET.
getStatistic() - Method in class com.neven.ticTacToeGame.service.StatisticService
This method use StatisticRepository to find statistic with a name Statistic.STATISTIC_NAME.
getTotalGames() - Method in class com.neven.ticTacToeGame.entity.Statistic
Method takes Statistic.playerWin, Statistic.algorithmWin, Statistic.draw and return theirs sum.
A C D E F G I M N P R S T U V W 
All Classes All Packages