Constructors
constructor
- new Piece(csa: string): Piece
Methods
Static canPromote
- canPromote(kind: string): boolean
-
Parameters
Returns boolean
Static fromSFENString
- fromSFENString(sfen: string): Piece
Static isPromoted
- isPromoted(kind: string): boolean
-
Parameters
Returns boolean
Static promote
- promote(kind: string): string
-
Parameters
Returns string
Static unpromote
- unpromote(kind: string): string
-
Parameters
Returns string
駒を表すクラス