module Sashite::Cpn
Namespace for the library.
Namespace for the library.
Namespace for the library.
Namespace for the library.
Namespace for the library.
Public Class Methods
generate(bool, indexes, squares, pieces)
click to toggle source
Generate
the CPN.
@param bool [Boolean] The turn to play. @param indexes [Array] The shape of the board. @param squares [Array] The board structure. @param pieces [Array] The list of pieces in hand.
# File lib/sashite/cpn.rb, line 11 def self.generate(bool, indexes, squares, pieces) Generate.new(bool, indexes, squares, pieces).to_s end