Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
chess
main
AI
Bishop
Board
Chess
ChessMan
Empty
King
Knight
Pawn
Queen
Rook
Spot
Generated using Crystal 1.14.0
2024-11-26 07:41:53 UTC
class
Empty
Empty
ChessMan
Reference
Object
Defined in:
pieces/empty.cr
Constructors
.new
Instance Method Summary
#valid?
(board : Board, from_x, from_y, to_x, to_y)
Instance methods inherited from class
ChessMan
character : Char
character
,
character=(character : Char)
character=
,
draw
draw
,
en_passant : Bool
en_passant
,
en_passant=(en_passant : Bool)
en_passant=
,
moved : Bool
moved
,
moved=(moved : Bool)
moved=
,
valid?(board : Board, from_x, from_y, to_x, to_y)
valid?
,
value : Int32
value
,
value=(value : Int32)
value=
,
white : Bool | Nil
white
,
white=(white : Bool | Nil)
white=
Constructor methods inherited from class
ChessMan
new(white : Bool | Nil =
nil
, character : Char =
' '
, value : Int32 =
0
, en_passant : Bool =
false
)
new
Constructor Detail
def self.
new
#
[
View source
]
Instance Method Detail
def
valid?
(board :
Board
, from_x, from_y, to_x, to_y)
#
[
View source
]