backend
Members list
Type members
Classlikes
Bishop piece.
Bishop piece.
A bishop is a piece with long rang movements on diagonals.
Value parameters
- c
-
The color of the piece.
- p
-
The position of the piece.
Attributes
- Supertypes
The board game.
The board game.
The board contains a 8x8 matrix with every square containing a piece, either black, white or neutral.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A game of chess.
A game of chess.
A game is played between two players, white and black.
Attributes
- Todo
-
add clocks
keep move orders somewhere
draw rules (50 moves, 3 positions)
- Supertypes
-
class Objecttrait Matchableclass Any
A game of chess.
A game of chess.
A game is played between two players, white and black.
Attributes
- Todo
-
add clocks
keep move orders somewhere
draw rules (50 moves, 3 positions)
- Supertypes
-
class Objecttrait Matchableclass Any
King piece.
King piece.
A king is a piece which can move of one square in any direction.
Value parameters
- c
-
The color of the piece.
- p
-
The position of the piece.
Attributes
- Supertypes
Knight piece.
Knight piece.
A knight is a piece with L movements that can jump through pieces.
Value parameters
- c
-
The color of the piece.
- p
-
The position of the piece.
Attributes
- Supertypes
Attributes
- Supertypes
-
trait IOAppclass Objecttrait Matchableclass Any
- Self type
-
Main.type
King piece.
King piece.
A pawn is a piece that can only go forward (facing its forward from its color pieces)
If a pawn make it to the other side of the board, it promotes in either a queen, a bishop, a knight or a rook.
Value parameters
- c
-
The color of the piece.
- p
-
The position of the piece.
Attributes
- Supertypes
A piece architecture. This is not an abstract class because empty squares will be filled with piece with the "_" color.
A piece architecture. This is not an abstract class because empty squares will be filled with piece with the "_" color.
Value parameters
- c
-
The color of the piece
- p
-
The position of the piece
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
The main function of the chess game.
The main function of the chess game.
Creates a chess game and it's white turn to play. The game continue until one player win or a stalemate occurs
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A position in the chess board.
A position in the chess board.
Value parameters
- x
-
The row value. Must be 0 <= x <= 7.
- y
-
The column value. Must be 0 <= y <= 7
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Queen piece.
Queen piece.
A queen is a piece than can move on any squares of its diagonals, its row and its columns.
Value parameters
- c
-
The color of the piece.
- p
-
The position of the piece.
Attributes
- Supertypes
Rook piece.
Rook piece.
A rook is a piece than can move on any squares of its row and its columns.
Value parameters
- c
-
The color of the piece.
- p
-
The position of the piece.
Attributes
- Supertypes