class FEEN::Parser::Shape
- FEEN::Parser::Shape
- Reference
- Object
Overview
The shape class.
@example Parse the shape of a shogiban Shape.new("3,s,k,s,3/9/4,+P,4/9/7,+B,1/9/9/9/9").to_a # => [9, 9]
Defined in:
feen/parser/shape.crConstructors
-
.new(board : String)
@param board [String] The flatten board.
Instance Method Summary
-
#to_a
@return [Array] The size of each dimension of the board.