abstract class ChessMan
- ChessMan
- Reference
- Object
Direct Known Subclasses
Defined in:
pieces/chessman.crConstructors
- .new(white : Bool | Nil = nil, character : Char = ' ', value : Int32 = 0, en_passant : Bool = false)
Instance Method Summary
- #character : Char
- #character=(character : Char)
- #draw
- #en_passant : Bool
- #en_passant=(en_passant : Bool)
- #moved : Bool
- #moved=(moved : Bool)
- #valid?(board : Board, from_x, from_y, to_x, to_y)
- #value : Int32
- #value=(value : Int32)
- #white : Bool | Nil
- #white=(white : Bool | Nil)
Constructor Detail
def self.new(white : Bool | Nil = nil, character : Char = ' ', value : Int32 = 0, en_passant : Bool = false)
#