Module: Sashite::Pan
- Defined in:
- lib/sashite/pan.rb,
lib/sashite/pan/action.rb,
lib/sashite/pan/action/drop.rb,
lib/sashite/pan/action/move.rb,
lib/sashite/pan/action/pass.rb,
lib/sashite/pan/action/modify.rb,
lib/sashite/pan/action/capture.rb,
lib/sashite/pan/action/special.rb,
lib/sashite/pan/action/drop_capture.rb,
lib/sashite/pan/action/static_capture.rb
Overview
PAN (Portable Action Notation) implementation for Ruby
Provides functionality for working with atomic actions in abstract strategy board games using a human-readable string format with intuitive operator-based syntax.
This implementation is strictly compliant with PAN Specification v1.0.0
Defined Under Namespace
Modules: Action
Class Method Summary collapse
-
.parse(pan_string) ⇒ Pan::Action
Parse a PAN string into an Action object.
-
.valid?(pan_string) ⇒ Boolean
Check if a string represents a valid PAN action.
Class Method Details
.parse(pan_string) ⇒ Pan::Action
Parse a PAN string into an Action object
40 41 42 |
# File 'lib/sashite/pan.rb', line 40 def self.parse(pan_string) Action.parse(pan_string) end |
.valid?(pan_string) ⇒ Boolean
Check if a string represents a valid PAN action
25 26 27 |
# File 'lib/sashite/pan.rb', line 25 def self.valid?(pan_string) Action.valid?(pan_string) end |