Sashité for Developers
  1. Sashité for Developers
  2. Specifications
  3. PAN
  4. 1.0.0
  5. Examples

PAN Examples

Practical examples demonstrating Portable Action Notation v1.0.0 with detailed explanations of explicit and implicit effects.


Pass Action

Syntax

...

Description

The pass action explicitly changes the active player without altering the board state. Used when a player chooses to skip their turn (when permitted by game rules).

Example

...

Movement Actions

Simple Movement

Syntax

<source>-<destination>

Example: Pawn Advance

e2-e4

Example: Knight Jump

b1-c3

Movement with Explicit Promotion

Syntax

<source>-<destination>=<piece>

Example: Pawn Promotion to Queen

e7-e8=Q

Example: Shōgi Silver Promotion

c6-b7=+S

Capture Actions

Capture with Movement

Syntax

<source>+<destination>

Example: Bishop Captures Rook

c1+f4

Static Capture

Syntax

+<square>

Example: Custodian Capture

+d4

Drop Actions

Drop to Empty Square

Syntax (Explicit Piece)

<piece>*<destination>

Example: Shōgi Pawn Drop

P*e5

Syntax (Inferred Piece)

*<destination>

Example: Contextual Drop

*d4

Drop with Capture

Syntax

<piece>.<destination>

Example: Lance Drop with Capture

L.b4

In-Place Modifications

Syntax

<square>=<piece>

Example: Piece Enhancement

e4=+P

Example: Style Conversion

c3=S'

Complex Scenarios with Implicit Effects

Chess Castling

King-side Castling

e1-g1

Chess En Passant

White Captures En Passant

e5-f6

Mandatory Promotion Zone

Shōgi Pawn Enters Promotion Zone

g8-g9

Active Player Change Examples

Single Action Sequence

e2-e4  # White pawn moves, turn passes to black

Multiple Actions in a Game

e2-e4  # White → Black
e7-e5  # Black → White
g1-f3  # White → Black
b8-c6  # Black → White

Each action explicitly changes the active player, maintaining proper turn alternation.

Pass Move

...    # Current player passes, turn passes to opponent

Key Concepts Summary

Explicit Effects

All PAN actions have these explicit effects:

  1. The primary transformation (movement, capture, modification, drop, or pass)
  2. Direct consequences of that transformation
  3. Active player change (per Sashité Protocol)

Examples:

Implicit Effects

Implicit effects are determined by game rules:

Important: Active player change is NOT an implicit effect - it is always explicit per protocol.

Operator Usage

Operator Meaning Explicit Effects
- Movement Displacement + turn change
+ Capture Displacement + capture + turn change
* Drop Placement + turn change
. Drop capture Placement + capture + turn change
= Modification Transformation + turn change
... Pass Turn change only

When to Use Each Action Type

All actions change the active player as an explicit effect.


Implementation Notes

  1. Context matters: Some notations require game context for complete interpretation
  2. One action per notation: Each PAN string represents a single atomic action
  3. Explicit turn change: Every action changes active player (per protocol)
  4. Implicit handling: Game engines must implement implicit effects based on rules
  5. EPIN integration: Piece specifications follow EPIN format for states and styles
  6. Active player tracking: Implementations must update active player after each action