Horse

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. is not a leaper

Constructors

Horse
Link copied to clipboard
fun Horse(player: Player)

Functions

component1
Link copied to clipboard
operator fun component1(): Player
copy
Link copied to clipboard
fun copy(player: Player): Horse
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getSymbol
Link copied to clipboard
open override fun getSymbol(): String
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

moveGenerators
Link copied to clipboard
open override val moveGenerators: List<MoveGenerator2D.Composite>
that corresponds to the piece
player
Link copied to clipboard
open override val player: Player
the player that owns the piece