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

QPI Examples

Quick implementation guide for Qualified Piece Identifier v1.0.0 combining SIN and PIN primitives.


Primitive Combination

Basic Combination

SIN PIN QPI Result Interpretation
C K C:K Chess-style king, first player
c k c:k Chess-style king, second player
S +P S:+P Shogi-style enhanced pawn, first player
s +p s:+p Shogi-style enhanced pawn, second player
X -S X:-S Xiangqi-style diminished soldier, first player
x -s x:-s Xiangqi-style diminished soldier, second player

State Preservation

SIN PIN Base PIN with State QPI Result
C K K C:K
C K +K C:+K
C K -K C:-K
c k k c:k
c k +k c:+k
c k -k c:-k

Single-Style Games

Western Chess

SIN PIN QPI Interpretation
C K C:K White chess king
C Q C:Q White chess queen
C +R C:+R White chess rook, enhanced state
C -P C:-P White chess pawn, diminished state
c k c:k Black chess king
c q c:q Black chess queen
c +r c:+r Black chess rook, enhanced state
c -p c:-p Black chess pawn, diminished state

Japanese Shōgi

SIN PIN QPI Interpretation
S K S:K Sente shōgi king
S +R S:+R Sente promoted shōgi rook
S G S:G Sente shōgi gold general
S S S:S Sente shōgi silver general
S +S S:+S Sente promoted silver general
s k s:k Gote shōgi king
s +r s:+r Gote promoted shōgi rook
s g s:g Gote shōgi gold general
s s s:s Gote shōgi silver general
s +s s:+s Gote promoted silver general

Cross-Style Scenarios

Chess vs. Ōgi Match

In a hybrid game where the first player uses Chess pieces and the second player uses Ōgi pieces:

SIN PIN QPI Interpretation
C K C:K Chess king, controlled by first player
C Q C:Q Chess queen, controlled by first player
C +R C:+R Chess enhanced rook, controlled by first player
s k o:k Ōgi king, controlled by second player
s +r o:+r Ōgi promoted rook, controlled by second player
s +s o:+s Ōgi promoted silver, controlled by second player

Xiongqi vs. Makruk Match

In a hybrid game where the first player uses Xiongqi pieces and the second player uses Makruk pieces:

SIN PIN QPI Interpretation
X G X:G Xiongqi general, controlled by first player
X +S X:+S Xiongqi enhanced soldier, controlled by first player
m k m:k Makruk king, controlled by second player
m q m:q Makruk queen, controlled by second player

Extension Integration

Human-Readable Extensions

QPI can be enhanced with descriptive extensions:

QPI SIN Extension PIN Extension Full Description
C:K CHESS KING Chess king
c:k chess king Chess king
S:+S SHOGI +SILVER Shogi promoted silver
s:+s shogi +silver Shogi promoted silver

Multiple Source Mapping

Multiple extensions may correspond to the same QPI:

QPI Possible SIN Sources Possible PIN Sources
C:K CHESS, CAPABLANCA, COURIER KING, KNIGHT, KHAN
c:k chess, capablanca, courier king, knight, khan
S:P SHOGI, SITTUYIN, SHATRANJ PAWN, PIECE
s:p shogi, sittuyin, shatranj pawn, piece

Note: From QPI C:K, you cannot determine the original extensions without context.