# Index

B C D E F G H I L M N P R S T U V W X Y
All Classes and Interfaces|All Packages|Constant Field Values

## B

BLACK - Enum constant in enum class Color
board - Variable in class RenderCanvas
boardHeight - Variable in class GomokuBoard
  The height of the GomokuBoard.
boardHeight - Variable in class GomokuGame
boardState - Variable in class RenderBoard
boardWidth - Variable in class GomokuBoard
  The width of the GomokuBoard.
boardWidth - Variable in class GomokuGame

## C

canvas - Variable in class SwingRenderer
Cardinal - Enum Class in Unnamed Package
Cardinal() - Constructor for enum class Cardinal
chooseMove(GomokuBoard) - Method in class GomokuAI
  Return the coordinate of the move played by the Gomoku AI.
chooseMove(GomokuBoard) - Method in class Human
  Return the coordinate of the move played by the player.
chooseMove(GomokuBoard) - Method in class Player
  Return the coordinate of the move played by the player.
color - Variable in class Player
  The color of the Player
Color - Enum Class in Unnamed Package
Color() - Constructor for enum class Color
ConsoleRenderer - Class in Unnamed Package
ConsoleRenderer() - Constructor for class ConsoleRenderer
Coordinate - Class in Unnamed Package
Coordinate(int, int) - Constructor for class Coordinate
countAlignedCells(GomokuCell) - Method in class GomokuBoard
  This method return a Map of number aligned cells.
countMax(Map<Cardinal, Integer>) - Method in class GomokuBoard
  This method return the number max of the aligned Cells.

## D

DEFAULT_BOARD_HEIGHT - Static variable in class GomokuGame
DEFAULT_BOARD_WIDTH - Static variable in class GomokuGame
DEFAULT_TOKENS_COUNT - Static variable in class GomokuGame
difficulty - Variable in class GomokuAI
  The difficulty of the GomokuAI
draw(GomokuGame) - Method in class RenderCanvas
drawBoard(Graphics, int, int, int, int) - Method in class RenderBoard

## E

E - Enum constant in enum class Cardinal

## F

firstCell - Variable in class GomokuBoard
  The firstcell in the board, at the top left of the board.

## G

game - Variable in class GomokuRenderer
game - Variable in class SwingRenderer
genCells(int, int, Color[][]) - Method in class GomokuBoard
  This method gen all cells in the board and link each other.
get(int, int) - Method in class GomokuBoard
  This method get a cell in specific position in the board.
getAllNeighbour() - Method in class GomokuCell
  Return neighbours.
getAllsCells() - Method in class GomokuBoard
  This method return all cells in the board in the order.
getBoard() - Method in class GomokuGame
GetCellPoint(GomokuBoard) - Method in class GomokuAI
  Return a Map of all Cell playable, and their point.
getColor() - Method in class Player
  Return the color of the player.
getName() - Method in class Player
  Return the name of the player.
getNeighbour(Cardinal) - Method in class GomokuCell
  Return one neighbour.
getPlayableCells() - Method in class GomokuBoard
  This method return a list of playable cell.
getPreferredSize() - Method in class RenderCanvas
getSameColorNeighbour() - Method in class GomokuCell
  Return the number of same colored neighbours in all direction.
getState() - Method in class GomokuCell
  Return the state.
GomokuAI - Class in Unnamed Package
GomokuAI() - Constructor for class GomokuAI
GomokuBoard - Class in Unnamed Package
GomokuBoard(int, int) - Constructor for class GomokuBoard
  This constructor take the width and the height to creat a board of gomoku.
GomokuBoard(int, int, Color[][]) - Constructor for class GomokuBoard
  This constructor take the width and the height to creat a board of gomoku.
GomokuCell - Class in Unnamed Package
  This class is cell of the board of the Gomoku game.
GomokuCell(Color) - Constructor for class GomokuCell
  The constructor of the cell.
GomokuGame - Class in Unnamed Package
GomokuGame() - Constructor for class GomokuGame
GomokuRenderer - Class in Unnamed Package
GomokuRenderer() - Constructor for class GomokuRenderer

## H

height - Variable in class RenderBoard
Human - Class in Unnamed Package
Human() - Constructor for class Human

## I

init(GomokuGame) - Method in class ConsoleRenderer
init(GomokuGame) - Method in class GomokuRenderer
init(GomokuGame) - Method in class SwingRenderer
isEmpty() - Method in class GomokuCell
  This method returns if the current cell is empty
isPlayable() - Method in class GomokuCell
  Return if the cell is playable.
isPlayed() - Method in class GomokuCell
  This method returns if the cell has already played.

## L

link(GomokuCell, GomokuCell, Cardinal) - Static method in class GomokuCell
linkCell(Cardinal, GomokuCell) - Method in class GomokuCell
  This method link the cell at the Cardinal position on the current cell.
load(Path) - Method in class GomokuGame

## M

main(String[]) - Static method in class GomokuBoard
main(String[]) - Static method in class GomokuGame
main(String[]) - Static method in class SwingRenderer
mainFrame - Variable in class SwingRenderer

## N

N - Enum constant in enum class Cardinal
name - Variable in class Player
  The name of the Player
NE - Enum constant in enum class Cardinal
neighbour - Variable in class GomokuCell
  Enumerate neighbor with key in Cardinal direction and key representing the cell in that direction.
newGame() - Method in class GomokuGame
NIL - Enum constant in enum class Color
NW - Enum constant in enum class Cardinal

## P

paintComponent(Graphics) - Method in class RenderCanvas
Player - Class in Unnamed Package
Player() - Constructor for class Player
Player(String, Color) - Method in class Player
  The constructor of the Player.
player1 - Variable in class GomokuGame
player2 - Variable in class GomokuGame

## R

random - Variable in class GomokuAI
  The random initialization
RenderBoard - Class in Unnamed Package
RenderBoard(int, int) - Constructor for class RenderBoard
RenderCanvas - Class in Unnamed Package
RenderCanvas() - Constructor for class RenderCanvas

## S

S - Enum constant in enum class Cardinal
save(Path) - Method in class GomokuGame
SE - Enum constant in enum class Cardinal
setState(Color) - Method in class GomokuCell
  Change state of the current cell.
startGame() - Method in class GomokuGame
state - Variable in class GomokuCell
  The state of the cell represented by the enumerate Color, Nil is empty, white and black for the color of a token
SW - Enum constant in enum class Cardinal
SwingRenderer - Class in Unnamed Package
SwingRenderer() - Constructor for class SwingRenderer

## T

toString() - Method in class GomokuBoard
  This method print the board cell by cell with change line when the line is finished.
toString() - Method in class GomokuCell

## U

update() - Method in class ConsoleRenderer
update() - Method in class GomokuRenderer
update() - Method in class SwingRenderer
update(GomokuGame) - Method in class RenderBoard

## V

valueOf(String) - Static method in enum class Cardinal
  Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class Color
  Returns the enum constant of this class with the specified name.
values() - Static method in enum class Cardinal
  Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class Color
  Returns an array containing the constants of this enum class, in the order they are declared.

## W

W - Enum constant in enum class Cardinal
WHITE - Enum constant in enum class Color
width - Variable in class RenderBoard

## X

x - Variable in class Coordinate

## Y

y - Variable in class Coordinate

B C D E F G H I L M N P R S T U V W X Y
All Classes and Interfaces|All Packages|Constant Field Values