class FEEN::Parser::Shape

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(board : String) #

@param board [String] The flatten board.


[View source]

Instance Method Detail

def to_a #

@return [Array] The size of each dimension of the board.


[View source]