Castleable

Castleable
trait Castleable

A piece that can castle.

By default, castle is authorize.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class King
class Rook

Members list

Value members

Concrete methods

def canCastle: Boolean

Says if a piece is able to castle.

Says if a piece is able to castle.

Attributes

Returns

true if the piece can castle, false otherwise.

def cannotCastle: Unit

Disable the right to castle for this piece.

Disable the right to castle for this piece.

Attributes