Sashité for Developers
  1. Sashité for Developers
  2. Specifications
  3. CELL
  4. 1.0.0
  5. Examples
  6. 2D Shōgi

2D Shōgi Board - Size 9x9

CELL Coordinates:

  ┌───┬───┬───┬───┬───┬───┬───┬───┬───┐
9 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
8 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
7 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
6 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
5 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
4 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
3 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
2 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
1 │   │   │   │   │   │   │   │   │   │
  └───┴───┴───┴───┴───┴───┴───┴───┴───┘
    a   b   c   d   e   f   g   h   i

Empty squares represented by spaces.


Initial Position

Initial position with two kings facing each other:

  ┌───┬───┬───┬───┬───┬───┬───┬───┬───┐
9 │   │   │   │   │ k │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
8 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
7 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
6 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
5 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
4 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
3 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
2 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
1 │   │   │   │   │ K │   │   │   │   │
  └───┴───┴───┴───┴───┴───┴───┴───┴───┘
    a   b   c   d   e   f   g   h   i

Legend

Locations


Next Position

Position after Sente move:

  ┌───┬───┬───┬───┬───┬───┬───┬───┬───┐
9 │   │   │   │   │ k │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
8 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
7 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
6 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
5 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
4 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
3 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
2 │   │   │   │   │ K │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
1 │   │   │   │   │   │   │   │   │   │
  └───┴───┴───┴───┴───┴───┴───┴───┴───┘
    a   b   c   d   e   f   g   h   i

Locations


CELL Integration

This example demonstrates CELL’s 2D coordinate system using:

Each Square is identified by concatenating the two dimensions (e.g., e1, e9).

Traditional shōgi coordinate encodings may use non-ASCII scripts (e.g., 5五). Such strings are not valid CELL coordinates and MUST be mapped to valid CELL coordinates before validation.