A C D E F G I M N P R S T U V W
All Classes All Packages
All Classes All Packages
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 initializedGame.player2
field by incoming param,Game.currentPlayer
field byGame.player1
value andGame.cells
by filling all game filed withGame.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
- 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 byMiniMaxAlgorithm.player
,MiniMaxAlgorithm.algorithm
,MiniMaxAlgorithm.emptyCell
) characters. - getGame(GameTypes) - Static method in class com.neven.ticTacToeGame.utils.GamesFactory
-
This method return specific
Game
(can bePlayerVsPlayerGame
,PlayerVsRandomGame
,PlayerVsAlgorithmGame
) by receiving game type fromGameTypes
. - 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 nameStatistic.STATISTIC_NAME
. - getTotalGames() - Method in class com.neven.ticTacToeGame.entity.Statistic
All Classes All Packages