module Ugoki
Namespace for the Ugoki
lib.
Public Class Methods
pseudo_legal_moves(base, feen)
click to toggle source
@param base [Hash] A tablebase containing the precalculated pseudo-legal
moves of the game.
@param feen [String] The FEEN string representing a position.
@return [Set] The set of pseudo-legal moves.
@see developer.sashite.com/specs/forsyth-edwards-expanded-notation
# File lib/ugoki.rb, line 15 def self.pseudo_legal_moves(base, feen) position = Position.parse(feen) Selector.new(base, position).call end