Package pieces.janggi

Types

Advisor
Link copied to clipboard
data class Advisor(player: Player) : Piece2D
Represents an advisor in Janggi
BlueSoldier
Link copied to clipboard
data class BlueSoldier(player: Player) : JanggiSoldier
Represents a blue soldier in Janggi
Cannon
Link copied to clipboard
data class Cannon(player: Player) : Piece2D
Represents a cannon in Janggi
Chariot
Link copied to clipboard
data class Chariot(player: Player) : Piece2D
Represents a chariot in Janggi equivalent to rook in standard chess, but can move diagonally within palace
Elephant
Link copied to clipboard
data class Elephant(player: Player) : Piece2D
Represents an elephant in Janggi
General
Link copied to clipboard
data class General(player: Player) : Piece2D, Royal
Represents a general (Royal piece) in Janggi
Horse
Link copied to clipboard
data class Horse(player: Player) : Piece2D
Represents a horse in Janggi Moves are similar to a standard to chess knight, but cannot jump over another pieces i.e.
JanggiSoldier
Link copied to clipboard
abstract class JanggiSoldier(player: Player, direction: Direction) : Piece2D, Pawn
Represents a soldier in Janggi
RedSoldier
Link copied to clipboard
data class RedSoldier(player: Player) : JanggiSoldier
Represents a red soldier in Janggi
SpecialRegion
Link copied to clipboard
object SpecialRegion
Contains special regions used in Janggi